Import HKDF code from OpenSSL 1.1.1o
authortb <tb@openbsd.org>
Wed, 4 May 2022 18:02:07 +0000 (18:02 +0000)
committertb <tb@openbsd.org>
Wed, 4 May 2022 18:02:07 +0000 (18:02 +0000)
commitc00c752648dee95893916247d14b7f432448acee
tree3ba9fa4a7ebb89ab78b283088958866b311f9978
parent38f7d33d7bd206332a3a6138cfafaf66154ed6c1
Import HKDF code from OpenSSL 1.1.1o

This imports verbatim copies as of the OpenSSL_1_1_1o tag of

  crypto/kdf/hkdf.c
  crypto/kdf/hkdf_err.c
  include/openssl/kdf.h
  include/openssl/kdferr.h

from https://www.github.com/openssl/openssl.git into lib/libcrypto/kdf.

We only want the EVP interface to HKDF since some ports need them.  Not
yet linked to the build since it will not compile. Follow-on commits will
add KNF, clean up and make this compile.

Tests of an early draft version by abieber and Caspar Schutijser

ok jsing
lib/libcrypto/kdf/hkdf.c [new file with mode: 0644]
lib/libcrypto/kdf/kdf.h [new file with mode: 0644]
lib/libcrypto/kdf/kdf_err.c [new file with mode: 0644]
lib/libcrypto/kdf/kdferr.h [new file with mode: 0644]