diff options
author | Matt Caswell <matt@openssl.org> | 2018-03-05 15:13:43 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-03-15 12:47:27 +0000 |
commit | e32b52a27e20a45f51f489e4efc04d1ca72b9609 (patch) | |
tree | 95cbe2c2b77ed2b929b34f00f3ac794e0fb14408 /ssl/tls13_enc.c | |
parent | cc8b15c7e1934ba710fbce32676451acc9cbe8a0 (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 'ssl/tls13_enc.c')
-rw-r--r-- | ssl/tls13_enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/tls13_enc.c b/ssl/tls13_enc.c index 5982c8e93d..23a2c59ecf 100644 --- a/ssl/tls13_enc.c +++ b/ssl/tls13_enc.c @@ -248,10 +248,10 @@ size_t tls13_final_finish_mac(SSL *s, const char *str, size_t slen, } if (str == s->method->ssl3_enc->server_finished_label) - key = EVP_PKEY_new_mac_key(EVP_PKEY_HMAC, NULL, + key = EVP_PKEY_new_private_key(EVP_PKEY_HMAC, NULL, s->server_finished_secret, hashlen); else - key = EVP_PKEY_new_mac_key(EVP_PKEY_HMAC, NULL, + key = EVP_PKEY_new_private_key(EVP_PKEY_HMAC, NULL, s->client_finished_secret, hashlen); if (key == NULL |