-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SHA3/SHAKE Init Updates via FIPS202 API layer (#2101)
AWS-LC supports SHA3 and SHAKE algorithms though low level SHA3_Init, SHA3_Update, SHA3_Final and SHAKE_Init, SHAKE_Final APIs. This commit introduces (partially) a new API layer and modifies other APIs: FIPS202 (new), SHA3 (modified) and SHAKE (modified). - _FIPS202_ layer: implements (so far) Init functions; FIPS202 layer manages the internal input/output buffers, allowing incremental requests (not necessarily multiple of block size) to Update (Absorb) and Squeeze for input/output processing. (Other functionalities, such as zero-ing of bitstate, block size checks, etc. are also handled by FIPS202 API layer). - _SHA3_ layer: modifies (so far only in SHA3_Init) via FIPS2020_ layer APIs - _SHAKE_ layer: modifies (so far only in SHAKE_Init) XOF SHAKE algorithm via FIPS2020_ layer APIs This commit introduces APIs changes in the function parameter list of the existing APIs. Particularly, SHA3_Init signature consisted of a parameter |pad_char|, which was used for differentiating SHA3_Init from SHAKE_Init functions.
- Loading branch information
1 parent
695c3a0
commit 39a4383
Showing
4 changed files
with
53 additions
and
43 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