-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SHA2 Increment with arbitrary length (non-block sizes) #1614
Conversation
Hi Gentlemen, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good, other than using OQS_MEM_secure_free
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks Norm. I think it's good to go pending a NULL
check after malloc
in inc_blocks
and finalize
.
* Enhanced with new SHA2 API that allows arbitary length updates * Fix style * Fix format * Document struct members * Fix comparison sign * Use OQS SHA2 API * Add nl at end * Use OQS_MEM_secure_free instead of free * Updated per review... mem check after malloc, use memcpy * Fix style
* Enhanced with new SHA2 API that allows arbitary length updates * Fix style * Fix format * Document struct members * Fix comparison sign * Use OQS SHA2 API * Add nl at end * Use OQS_MEM_secure_free instead of free * Updated per review... mem check after malloc, use memcpy * Fix style
* Enhanced with new SHA2 API that allows arbitary length updates * Fix style * Fix format * Document struct members * Fix comparison sign * Use OQS SHA2 API * Add nl at end * Use OQS_MEM_secure_free instead of free * Updated per review... mem check after malloc, use memcpy * Fix style
* Enhanced with new SHA2 API that allows arbitary length updates * Fix style * Fix format * Document struct members * Fix comparison sign * Use OQS SHA2 API * Add nl at end * Use OQS_MEM_secure_free instead of free * Updated per review... mem check after malloc, use memcpy * Fix style
* Enhanced with new SHA2 API that allows arbitary length updates * Fix style * Fix format * Document struct members * Fix comparison sign * Use OQS SHA2 API * Add nl at end * Use OQS_MEM_secure_free instead of free * Updated per review... mem check after malloc, use memcpy * Fix style
* Enhanced with new SHA2 API that allows arbitary length updates * Fix style * Fix format * Document struct members * Fix comparison sign * Use OQS SHA2 API * Add nl at end * Use OQS_MEM_secure_free instead of free * Updated per review... mem check after malloc, use memcpy * Fix style
* Enhanced with new SHA2 API that allows arbitary length updates * Fix style * Fix format * Document struct members * Fix comparison sign * Use OQS SHA2 API * Add nl at end * Use OQS_MEM_secure_free instead of free * Updated per review... mem check after malloc, use memcpy * Fix style
commit e356ebf Na lms (#1486) commit 55094c3 LMS H5_W1 (#1513) commit 4d773d7 Convert to use OQS_SIG_STFL_SECRET_KEY struct (#1525) commit 245aede LMS updated to use new SK API (#1533) commit a85a9aa Stateful sigs secret key storage callback (#1553) commit 3934949 Na statful sig lock (#1559) commit 3db6b44 Secret Key Query (#1572) commit 2446c64 Na stateful sigs lms var (#1574) commit 8df2539 Stateful sigs XMSS updates (#1590) commit a7b2987 SHA2 Increment with arbitrary length (non-block sizes) (#1614) commit 2dd9e07 Na lms kat multi level (#1620) commit 982b440 Fix Build Errors (#1635) commit ddae644 Various fixes commit cc50ef0 Fix warning commit cf03392 Update README.md commit 9325713 Update README.md commit a52b217 Update README.md commit d442ac9 Update README.md commit 72ab478 Update README.md commit 5967f12 Update src/CMakeLists.txt commit fc6d512 Update documentation and license text. (#1663) commit e7a83c7 Disable Stateful Signatures in the build by default (#1676) commit 6c81bae Na stateful macro (#1687) Signed-off-by: Norman Ashley <[email protected]>
New internal API void OQS_SHA2_sha256_inc(OQS_SHA2_sha256_ctx *state, const uint8_t *in, size_t len)
Tested interactions and ordered combinations of OQS_SHA2_sha256_inc_blocks(), OQS_SHA2_sha256_inc() followed by OQS_SHA2_sha256_inc_finalize().