diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-02-01 18:15:57 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-02-28 22:54:53 +0000 |
commit | 6903e2e7e9a47bb350920ae640287cf9f43a22ce (patch) | |
tree | 7cbbc665d681b79500d0c60aefdb3d745518896a /crypto/ec/ec_check.c | |
parent | 474d84ec81d6926698d27a2cbbbbe2961ecf6541 (diff) |
Extended EC_METHOD customisation support.
Add support for optional overrides of various private key operations
in EC_METHOD.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'crypto/ec/ec_check.c')
-rw-r--r-- | crypto/ec/ec_check.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/ec/ec_check.c b/crypto/ec/ec_check.c index aa35322355..601559f4c4 100644 --- a/crypto/ec/ec_check.c +++ b/crypto/ec/ec_check.c @@ -62,6 +62,10 @@ int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx) BN_CTX *new_ctx = NULL; EC_POINT *point = NULL; + /* Custom curves assumed to be correct */ + if ((group->meth->flags & EC_FLAGS_CUSTOM_CURVE) != 0) + return 1; + if (ctx == NULL) { ctx = new_ctx = BN_CTX_new(); if (ctx == NULL) { |