diff options
author | Pauli <ppzgs1@gmail.com> | 2021-02-26 10:08:45 +1000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-02-28 17:25:49 +1000 |
commit | 36fae6e85a12c46b48d82762911c74e53ec0cc13 (patch) | |
tree | c7807d0bb33d82ee69931bc54f3ab9c7cd2f790e /crypto/ec/ecdh_kdf.c | |
parent | bb0ab821f38427576e4f25bb66818bc297ee8b22 (diff) |
crypto: add additional argument to KDF derive calls
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14310)
Diffstat (limited to 'crypto/ec/ecdh_kdf.c')
-rw-r--r-- | crypto/ec/ecdh_kdf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/ec/ecdh_kdf.c b/crypto/ec/ecdh_kdf.c index 60e976a95f..450e2a872b 100644 --- a/crypto/ec/ecdh_kdf.c +++ b/crypto/ec/ecdh_kdf.c @@ -42,8 +42,7 @@ int ossl_ecdh_kdf_X9_63(unsigned char *out, size_t outlen, (void *)sinfo, sinfolen); *p = OSSL_PARAM_construct_end(); - ret = EVP_KDF_CTX_set_params(kctx, params) > 0 - && EVP_KDF_derive(kctx, out, outlen) > 0; + ret = EVP_KDF_derive(kctx, out, outlen, params) > 0; EVP_KDF_CTX_free(kctx); } EVP_KDF_free(kdf); |