[crypto] Add SHA-512/256 algorithm
authorMichael Brown <mcb30@ipxe.org>
Sun, 12 Apr 2015 15:34:33 +0000 (16:34 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 12 Apr 2015 16:01:10 +0000 (17:01 +0100)
commite5e91ab47107dde8eb66442cf35722b5c2ee89f9
tree45e343291fe779654ebc61965b5a77de431a605b
parent02879299c96e02e0ad6093d86b04468ab89d3cfe
[crypto] Add SHA-512/256 algorithm

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>
src/crypto/sha512_256.c [new file with mode: 0644]
src/include/ipxe/asn1.h
src/include/ipxe/sha512.h
src/tests/sha512_test.c