diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_smpl.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_smpl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ecp_smpl.c b/src/lib/libcrypto/ec/ecp_smpl.c index 1d0b1d6106..6f5280bbc9 100644 --- a/src/lib/libcrypto/ec/ecp_smpl.c +++ b/src/lib/libcrypto/ec/ecp_smpl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecp_smpl.c,v 1.33 2021/09/08 17:29:21 tb Exp $ */ | 1 | /* $OpenBSD: ecp_smpl.c,v 1.34 2022/01/20 11:02:44 inoguchi Exp $ */ |
2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> | 2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> |
3 | * for the OpenSSL project. | 3 | * for the OpenSSL project. |
4 | * Includes code written by Bodo Moeller for the OpenSSL project. | 4 | * Includes code written by Bodo Moeller for the OpenSSL project. |
@@ -586,7 +586,7 @@ ec_GFp_simple_point_get_affine_coordinates(const EC_GROUP * group, const EC_POIN | |||
586 | } | 586 | } |
587 | } | 587 | } |
588 | } else { | 588 | } else { |
589 | if (!BN_mod_inverse_ct(Z_1, Z_, &group->field, ctx)) { | 589 | if (BN_mod_inverse_ct(Z_1, Z_, &group->field, ctx) == NULL) { |
590 | ECerror(ERR_R_BN_LIB); | 590 | ECerror(ERR_R_BN_LIB); |
591 | goto err; | 591 | goto err; |
592 | } | 592 | } |
@@ -1316,7 +1316,7 @@ ec_GFp_simple_points_make_affine(const EC_GROUP * group, size_t num, EC_POINT * | |||
1316 | 1316 | ||
1317 | /* invert heap[1] */ | 1317 | /* invert heap[1] */ |
1318 | if (!BN_is_zero(heap[1])) { | 1318 | if (!BN_is_zero(heap[1])) { |
1319 | if (!BN_mod_inverse_ct(heap[1], heap[1], &group->field, ctx)) { | 1319 | if (BN_mod_inverse_ct(heap[1], heap[1], &group->field, ctx) == NULL) { |
1320 | ECerror(ERR_R_BN_LIB); | 1320 | ECerror(ERR_R_BN_LIB); |
1321 | goto err; | 1321 | goto err; |
1322 | } | 1322 | } |