[crypto] Add SHA-224 algorithm
authorMichael Brown <mcb30@ipxe.org>
Sun, 12 Apr 2015 13:50:18 +0000 (14:50 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 12 Apr 2015 16:01:10 +0000 (17:01 +0100)
commit4dbc44348ca9011465c3bce38757173c059309ec
treec5f0790a71bc74fe3083a18e164416b0ecf3ed4b
parenta9da1291227735fdae475e21b02b2a5fa29dd956
[crypto] Add SHA-224 algorithm

SHA-224 is almost identical to SHA-256, with differing initial hash
values and a truncated output length.

This implementation has been verified using the NIST SHA-224 test
vectors.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/crypto/sha224.c [new file with mode: 0644]
src/crypto/sha256.c
src/include/ipxe/asn1.h
src/include/ipxe/sha256.h
src/tests/sha256_test.c