diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-04-12 15:42:45 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-04-12 17:01:10 +0100 |
commit | 6f713c2d959ab3280afc83e722d6589da2029108 (patch) | |
tree | 99843407dc4d237c60472fd52da4cc53526f57f8 /src/include/ipxe/sha256.h | |
parent | 4dbc44348ca9011465c3bce38757173c059309ec (diff) | |
download | ipxe-6f713c2d959ab3280afc83e722d6589da2029108.tar.gz |
[crypto] Add SHA-512 algorithm
This implementation has been verified using the NIST SHA-512 test
vectors.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/sha256.h')
-rw-r--r-- | src/include/ipxe/sha256.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/sha256.h b/src/include/ipxe/sha256.h index 811279a64..e234cce33 100644 --- a/src/include/ipxe/sha256.h +++ b/src/include/ipxe/sha256.h @@ -12,6 +12,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include <stdint.h> #include <ipxe/crypto.h> +/** SHA-256 number of rounds */ +#define SHA256_ROUNDS 64 + /** An SHA-256 digest */ struct sha256_digest { /** Hash output */ |