diff options
author | tb <> | 2024-10-19 08:29:40 +0000 |
---|---|---|
committer | tb <> | 2024-10-19 08:29:40 +0000 |
commit | 72bb07c05c2f77944ec97d3b037b16ca08be47ae (patch) | |
tree | e4d21969e00b3bfe73e6f7649e0e762e1d00c891 /src | |
parent | 5d35c7f2de42a80e149efbedc993eed62af76746 (diff) | |
download | openbsd-72bb07c05c2f77944ec97d3b037b16ca08be47ae.tar.gz openbsd-72bb07c05c2f77944ec97d3b037b16ca08be47ae.tar.bz2 openbsd-72bb07c05c2f77944ec97d3b037b16ca08be47ae.zip |
EC_GROUP_check(): zap useless comments
Diffstat (limited to 'src')
-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) |