diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index e17c4396f7..1918d0ba52 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_lib.c,v 1.71 2024/10/19 08:26:03 tb Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.72 2024/10/19 08:29:40 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -614,12 +614,11 @@ EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx_in) | |||
| 614 | if (ctx == NULL) | 614 | if (ctx == NULL) |
| 615 | goto err; | 615 | goto err; |
| 616 | 616 | ||
| 617 | /* check the discriminant */ | ||
| 618 | if (!EC_GROUP_check_discriminant(group, ctx)) { | 617 | if (!EC_GROUP_check_discriminant(group, ctx)) { |
| 619 | ECerror(EC_R_DISCRIMINANT_IS_ZERO); | 618 | ECerror(EC_R_DISCRIMINANT_IS_ZERO); |
| 620 | goto err; | 619 | goto err; |
| 621 | } | 620 | } |
| 622 | /* check the generator */ | 621 | |
| 623 | if (group->generator == NULL) { | 622 | if (group->generator == NULL) { |
| 624 | ECerror(EC_R_UNDEFINED_GENERATOR); | 623 | ECerror(EC_R_UNDEFINED_GENERATOR); |
| 625 | goto err; | 624 | goto err; |
| @@ -628,7 +627,7 @@ EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx_in) | |||
| 628 | ECerror(EC_R_POINT_IS_NOT_ON_CURVE); | 627 | ECerror(EC_R_POINT_IS_NOT_ON_CURVE); |
| 629 | goto err; | 628 | goto err; |
| 630 | } | 629 | } |
| 631 | /* check the order of the generator */ | 630 | |
| 632 | if ((point = EC_POINT_new(group)) == NULL) | 631 | if ((point = EC_POINT_new(group)) == NULL) |
| 633 | goto err; | 632 | goto err; |
| 634 | if ((order = EC_GROUP_get0_order(group)) == NULL) | 633 | if ((order = EC_GROUP_get0_order(group)) == NULL) |
