Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: Move sha context and result size to new header
This is to prepare for SHA3 inclusion
- Loading branch information
Showing
3 changed files
with
11 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef SHA_COMMON | ||
|
||
#define SHA256_RESULTLEN (256 / 8) | ||
#define SHA256_BLOCK_SIZE (512 / 8) | ||
|
||
#define SHA512_RESULTLEN (512 / 8) | ||
#define SHA512_BLOCK_SIZE (1024 / 8) | ||
|
||
#endif |
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