-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose SHAKE through the EVP API (#1199)
* chkpnt: wired to EVP, compiles, need to add tests * Tests running, all failing * Fix tests, now only some (but not all!) SHAKE128 tests are failing * Fix pre-existing bug in SHAKE one-shot tests * Remove SHA128 digest test cases with \x00 in msg due to strlen usage * Add SHAKE256 digest_text.cc NIST vectors * Add digest and evp _extra, doc comments * Move finalXOF to end of evp_md_st to preserve memory layout * Add SHA3 and SHAKE to the service indicator * SQUASHME * Add SHAKE ACVP vectors * Support SHAKE in EVP_Digest, add XOF functionality to modulewrapper * Fix digest_test.cc after merge * Add SHAKE ACVP modulewrapper JSON configs * Clarify and add comments to digest_test.cc * Add SHAKE monte carlo tests * Fix SHA2 tests, account for weird golang case/switch impl * Fix SHAKE MCTs * Update formatting for SHAKE128 expected ACVP vectors * Replace SHAKE256 ACVP vectors with byte-aligned vectors * Reformat expected SHAKE-256 ACVP vectors * Clean up TODOs * Support sha3 in EVP_getdigestbyname * Update crypto/fipsmodule/sha/internal.h Co-authored-by: dkostic <[email protected]> * Trim ACVP vectors, adjust error code in EVP_Digest * Fix merge typo * Add test case for successive digest finalization * Add self check for SHA3/SHAKE * Add SHA3-512 to self_check.c and test_fips.c * Add SHA3 to break-kat.go, use unique input in self-check.c * Revert "Add SHA3 to break-kat.go, use unique input in self-check.c" This reverts commit 090e2ba. * Revert "Add SHA3-512 to self_check.c and test_fips.c" This reverts commit 5d23a69. * Revert "Add self check for SHA3/SHAKE" This reverts commit 1726039. * Update crypto/fipsmodule/digest/digest.c Co-authored-by: dkostic <[email protected]> * Simplify ctx cleansing * Refactor EVP_digest for better failure perf, add test --------- Co-authored-by: dkostic <[email protected]>
- Loading branch information
1 parent
4580d0c
commit bb1aaba
Showing
25 changed files
with
591 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.