projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extended EC_METHOD customisation support.
[openssl.git]
/
crypto
/
ec
/
ec_check.c
diff --git
a/crypto/ec/ec_check.c
b/crypto/ec/ec_check.c
index aa3532235577118dc3147e824a0ceea48ccdaec3..601559f4c488c5e3e0d353561df177b9fa0585a9 100644
(file)
--- 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;
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) {
if (ctx == NULL) {
ctx = new_ctx = BN_CTX_new();
if (ctx == NULL) {