diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2021-03-09 11:04:21 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2021-03-18 17:52:37 +1000 |
commit | 054d43ff972068a0f2ec07319808ca32ad0afb5f (patch) | |
tree | 084414afcd5637f6d2adfb7b28e61e8843157ab6 /providers/implementations/exchange | |
parent | 47864aeafd2ca0ea551f00df99c4c598b53c5912 (diff) | |
download | openssl-054d43ff972068a0f2ec07319808ca32ad0afb5f.zip openssl-054d43ff972068a0f2ec07319808ca32ad0afb5f.tar.gz openssl-054d43ff972068a0f2ec07319808ca32ad0afb5f.tar.bz2 |
Add ossl_ ecx symbols
Partial fix for #12964
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14473)
Diffstat (limited to 'providers/implementations/exchange')
-rw-r--r-- | providers/implementations/exchange/ecx_exch.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/providers/implementations/exchange/ecx_exch.c b/providers/implementations/exchange/ecx_exch.c index caa1eec..2ba9090 100644 --- a/providers/implementations/exchange/ecx_exch.c +++ b/providers/implementations/exchange/ecx_exch.c @@ -154,7 +154,8 @@ static int ecx_derive(void *vecxctx, unsigned char *secret, size_t *secretlen, } } else #endif - if (X25519(secret, ecxctx->key->privkey, ecxctx->peerkey->pubkey) == 0) { + if (ossl_x25519(secret, ecxctx->key->privkey, + ecxctx->peerkey->pubkey) == 0) { ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_DURING_DERIVATION); return 0; } @@ -169,7 +170,8 @@ static int ecx_derive(void *vecxctx, unsigned char *secret, size_t *secretlen, } } else #endif - if (X448(secret, ecxctx->key->privkey, ecxctx->peerkey->pubkey) == 0) { + if (ossl_x448(secret, ecxctx->key->privkey, + ecxctx->peerkey->pubkey) == 0) { ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_DURING_DERIVATION); return 0; } |