diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2020-01-16 17:18:26 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-03-12 07:14:32 +1000 |
commit | a173cc9c388cbe8105f78ba5a8fdfbf20a35be1a (patch) | |
tree | 152d189a952143596a840e6a7a49121a2c889391 /include/crypto/ec.h | |
parent | 0e6f62e3e1c4cdaa8e3bda7d459f978541dfb1fe (diff) |
Add EC key validation to default provider
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10861)
Diffstat (limited to 'include/crypto/ec.h')
-rw-r--r-- | include/crypto/ec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/crypto/ec.h b/include/crypto/ec.h index c4f7d2e778..9ebf45d0f4 100644 --- a/include/crypto/ec.h +++ b/include/crypto/ec.h @@ -50,5 +50,9 @@ int ecdh_KDF_X9_63(unsigned char *out, size_t outlen, const EVP_MD *md); int ec_generate_key(OPENSSL_CTX *libctx, EC_KEY *eckey, int pairwise_test); +int ec_key_public_check(const EC_KEY *eckey, BN_CTX *ctx); +int ec_key_private_check(const EC_KEY *eckey); +int ec_key_pairwise_check(const EC_KEY *eckey, BN_CTX *ctx); +OPENSSL_CTX *ec_key_get_libctx(const EC_KEY *eckey); # endif /* OPENSSL_NO_EC */ #endif |