[krbdev.mit.edu #8490] git commit
Greg Hudson via RT
rt-comment at krbdev.mit.edu
Mon Oct 3 16:02:41 EDT 2016
Add libk5crypto SHA-256 and SHA-384 hash providers
Add SHA-256 and SHA-384 hash providers to each of the libk5crypto back
ends, in preparation for AES-SHA2 support. For the builtin back end,
adapt SHA-512 code from Heimdal (SHA-384 is just truncated SHA-512
with different initial values). Replace builtin/sha2/t_sha256.c with
a program under crypto_tests which tests SHA-256 and SHA-384 in all
back ends.
https://github.com/krb5/krb5/commit/c438227afd763997c131339c1476f61d1628a20d
Author: Greg Hudson <ghudson at mit.edu>
Commit: c438227afd763997c131339c1476f61d1628a20d
Branch: master
src/lib/crypto/builtin/hash_provider/Makefile.in | 11 +-
src/lib/crypto/builtin/hash_provider/deps | 13 +
src/lib/crypto/builtin/hash_provider/hash_sha2.c | 88 +++++++
src/lib/crypto/builtin/sha2/Makefile.in | 20 +--
src/lib/crypto/builtin/sha2/deps | 10 +
src/lib/crypto/builtin/sha2/sha2.h | 23 ++
src/lib/crypto/builtin/sha2/sha512.c | 305 ++++++++++++++++++++++
src/lib/crypto/builtin/sha2/t_sha256.c | 117 ---------
src/lib/crypto/crypto_tests/Makefile.in | 13 +-
src/lib/crypto/crypto_tests/deps | 12 +
src/lib/crypto/crypto_tests/t_sha2.c | 145 ++++++++++
src/lib/crypto/krb/crypto_int.h | 2 +
src/lib/crypto/openssl/hash_provider/hash_evp.c | 20 ++
src/lib/crypto/openssl/hmac.c | 4 +
14 files changed, 642 insertions(+), 141 deletions(-)
More information about the krb5-bugs
mailing list