X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fec%2Fec_check.c;h=601559f4c488c5e3e0d353561df177b9fa0585a9;hp=aa3532235577118dc3147e824a0ceea48ccdaec3;hb=6903e2e7e9a47bb350920ae640287cf9f43a22ce;hpb=474d84ec81d6926698d27a2cbbbbe2961ecf6541;ds=sidebyside 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) {