]> git.ipfire.org Git - thirdparty/krb5.git/commit
Use OpenSSL 3 versions of remaining KDFs
authorRobbie Harwood <rharwood@redhat.com>
Fri, 20 Sep 2019 21:20:59 +0000 (17:20 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 15 Nov 2021 16:16:08 +0000 (11:16 -0500)
commit1c87ce6c44a9de0824580a2d72a8a202237e01f4
tree702930b142ba8be976dc78f4f96cd96b2c3678b2
parentf35077bfc570205092eca2a9d44e50ce265622f4
Use OpenSSL 3 versions of remaining KDFs

In OpenSSL's terminology, id-pkinit-kdf is an instance of SSKDF,
AES-SHA2 and Camellia use KBKDF, and the KDF for DES3 and AES-SHA1 has
been named KRB5KDF.  Support for these KDFs was added in OpenSSL 3; we
already supported the existing PBKDF2.

[ghudson@mit.edu: reorganize into builtin and openssl versions of the
file; detect hash and encryption provider identity using pointer
equality like we do in the OpenSSL PBKDF implementation; add helpers
for this translation; simplify and better refactor the PKINIT code;
fix some latent pkinit_kdf_test.c bugs]
13 files changed:
src/lib/crypto/builtin/Makefile.in
src/lib/crypto/builtin/deps
src/lib/crypto/builtin/kdf.c [new file with mode: 0644]
src/lib/crypto/krb/crypto_int.h
src/lib/crypto/krb/derive.c
src/lib/crypto/krb/prf_aes2.c
src/lib/crypto/openssl/Makefile.in
src/lib/crypto/openssl/deps
src/lib/crypto/openssl/kdf.c [new file with mode: 0644]
src/plugins/preauth/pkinit/pkinit_constants.c
src/plugins/preauth/pkinit/pkinit_crypto.h
src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
src/plugins/preauth/pkinit/pkinit_kdf_test.c