diff options
Diffstat (limited to 'crypto/ec/ecdh_ossl.c')
-rw-r--r-- | crypto/ec/ecdh_ossl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/ec/ecdh_ossl.c b/crypto/ec/ecdh_ossl.c index 15a179fbc6..fadc007e14 100644 --- a/crypto/ec/ecdh_ossl.c +++ b/crypto/ec/ecdh_ossl.c @@ -103,6 +103,10 @@ int ossl_ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, return -1; } + if (ecdh->group->meth->ecdh_compute_key != 0) + return ecdh->group->meth->ecdh_compute_key(out, outlen, pub_key, ecdh, + KDF); + if ((ctx = BN_CTX_new()) == NULL) goto err; BN_CTX_start(ctx); |