Skip to content

Commit

Permalink
Move KDFs to the provider.
Browse files Browse the repository at this point in the history
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9662)
  • Loading branch information
paulidale committed Sep 6, 2019
1 parent dc5bcb8 commit 5eb43d3
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions providers/common/kdfs/build.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$COMMON=tls1_prf.c hkdf.c scrypt.c pbkdf2.c sskdf.c

LIBS=../../../libcrypto
SOURCE[../../../libcrypto]=$COMMON sshkdf.c x942kdf.c
INCLUDE[../../../libcrypto]=. ../../../crypto

IF[{- !$disabled{fips} -}]
MODULES=../../fips
SOURCE[../../fips]=$COMMON
INCLUDE[../../fips]=. ../../../crypto
ENDIF


File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions crypto/kdf/tls1_prf.c → providers/common/kdfs/tls1_prf.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ static int kdf_tls1_prf_ctrl(EVP_KDF_IMPL *impl, int cmd, va_list args)
impl->seclen = len;
return 1;

/* TODO: This is only ever called from pkey_kdf and only as part of setting the TLS secret
consider merging the twe two?? */
case EVP_KDF_CTRL_RESET_TLS_SEED:
OPENSSL_cleanse(impl->seed, impl->seedlen);
impl->seedlen = 0;
Expand Down
File renamed without changes.

0 comments on commit 5eb43d3

Please sign in to comment.