aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/sha512.h
AgeCommit message (Collapse)AuthorFilesLines
2022-10-10[crypto] Simplify internal HMAC APIMichael Brown1-0/+3
Simplify the internal HMAC API so that the key is provided only at the point of calling hmac_init(), and the (potentially reduced) key is stored as part of the context for later use by hmac_final(). This simplifies the calling code, and avoids the need for callers such as TLS to allocate a potentially variable length block in order to retain a copy of the unmodified key. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2015-04-12[crypto] Add SHA-512/224 algorithmMichael Brown1-0/+4
SHA-512/224 is almost identical to SHA-512, with differing initial hash values and a truncated output length. This implementation has been verified using the NIST SHA-512/224 test vectors. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2015-04-12[crypto] Add SHA-512/256 algorithmMichael Brown1-0/+4
SHA-512/256 is almost identical to SHA-512, with differing initial hash values and a truncated output length. This implementation has been verified using the NIST SHA-512/256 test vectors. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2015-04-12[crypto] Add SHA-384 algorithmMichael Brown1-0/+4
SHA-384 is almost identical to SHA-512, with differing initial hash values and a truncated output length. This implementation has been verified using the NIST SHA-384 test vectors. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2015-04-12[crypto] Add SHA-512 algorithmMichael Brown1-0/+86
This implementation has been verified using the NIST SHA-512 test vectors. Signed-off-by: Michael Brown <mcb30@ipxe.org>