diff options
author | Matt Caswell <matt@openssl.org> | 2020-01-27 16:57:03 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-02-11 22:32:56 +0000 |
commit | 90d3cb57c6caafbe031e32a99051386b8c5a90c0 (patch) | |
tree | 02f761db4d8bd08a329845fbe623f08ae3ac7d60 /crypto/dh | |
parent | 4de88fe6daad0b7bd65b20bc887ff1ac62ae2ce8 (diff) | |
download | openssl-90d3cb57c6caafbe031e32a99051386b8c5a90c0.zip openssl-90d3cb57c6caafbe031e32a99051386b8c5a90c0.tar.gz openssl-90d3cb57c6caafbe031e32a99051386b8c5a90c0.tar.bz2 |
Implement Provider side Key Management for X25519 and X448
Reviewed-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10964)
Diffstat (limited to 'crypto/dh')
-rw-r--r-- | crypto/dh/dh_ameth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/dh/dh_ameth.c b/crypto/dh/dh_ameth.c index 4f74ab6..bee414a 100644 --- a/crypto/dh/dh_ameth.c +++ b/crypto/dh/dh_ameth.c @@ -505,10 +505,10 @@ static int dh_pkey_export_to(const EVP_PKEY *from, void *to_keydata, return 0; } /* A key must at least have a public part. */ - if (!ossl_param_bld_push_BN(&tmpl, OSSL_PKEY_PARAM_DH_PUB_KEY, pub_key)) + if (!ossl_param_bld_push_BN(&tmpl, OSSL_PKEY_PARAM_PUB_KEY, pub_key)) return 0; if (priv_key != NULL) { - if (!ossl_param_bld_push_BN(&tmpl, OSSL_PKEY_PARAM_DH_PRIV_KEY, + if (!ossl_param_bld_push_BN(&tmpl, OSSL_PKEY_PARAM_PRIV_KEY, priv_key)) return 0; } |