summaryrefslogtreecommitdiffstats
path: root/crypto/kdf
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2018-03-05 15:13:43 +0000
committerMatt Caswell <matt@openssl.org>2018-03-15 12:47:27 +0000
commite32b52a27e20a45f51f489e4efc04d1ca72b9609 (patch)
tree95cbe2c2b77ed2b929b34f00f3ac794e0fb14408 /crypto/kdf
parentcc8b15c7e1934ba710fbce32676451acc9cbe8a0 (diff)
Add support for setting raw private HMAC keys
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5520)
Diffstat (limited to 'crypto/kdf')
-rw-r--r--crypto/kdf/tls1_prf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/kdf/tls1_prf.c b/crypto/kdf/tls1_prf.c
index 339e10c1b7..f618362c0a 100644
--- a/crypto/kdf/tls1_prf.c
+++ b/crypto/kdf/tls1_prf.c
@@ -193,7 +193,7 @@ static int tls1_prf_P_hash(const EVP_MD *md,
if (ctx == NULL || ctx_tmp == NULL || ctx_init == NULL)
goto err;
EVP_MD_CTX_set_flags(ctx_init, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
- mac_key = EVP_PKEY_new_mac_key(EVP_PKEY_HMAC, NULL, sec, sec_len);
+ mac_key = EVP_PKEY_new_private_key(EVP_PKEY_HMAC, NULL, sec, sec_len);
if (mac_key == NULL)
goto err;
if (!EVP_DigestSignInit(ctx_init, NULL, md, NULL, mac_key))