Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) From: ghudson@mit.edu Subject: git commit RT-Send-CC: X-RT-Original-Encoding: iso-8859-1 Content-Length: 1521 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 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(-)