diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_smpl.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_smpl.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libcrypto/ec/ecp_smpl.c b/src/lib/libcrypto/ec/ecp_smpl.c index 8f53b150b8..df9806445c 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.39 2023/03/07 05:54:40 jsing Exp $ */ | 1 | /* $OpenBSD: ecp_smpl.c,v 1.40 2023/03/07 09:27:10 jsing 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. |
@@ -102,9 +102,9 @@ ec_GFp_simple_group_finish(EC_GROUP *group) | |||
102 | void | 102 | void |
103 | ec_GFp_simple_group_clear_finish(EC_GROUP *group) | 103 | ec_GFp_simple_group_clear_finish(EC_GROUP *group) |
104 | { | 104 | { |
105 | BN_clear_free(&group->field); | 105 | BN_free(&group->field); |
106 | BN_clear_free(&group->a); | 106 | BN_free(&group->a); |
107 | BN_clear_free(&group->b); | 107 | BN_free(&group->b); |
108 | } | 108 | } |
109 | 109 | ||
110 | int | 110 | int |
@@ -324,9 +324,9 @@ ec_GFp_simple_point_finish(EC_POINT *point) | |||
324 | void | 324 | void |
325 | ec_GFp_simple_point_clear_finish(EC_POINT *point) | 325 | ec_GFp_simple_point_clear_finish(EC_POINT *point) |
326 | { | 326 | { |
327 | BN_clear_free(&point->X); | 327 | BN_free(&point->X); |
328 | BN_clear_free(&point->Y); | 328 | BN_free(&point->Y); |
329 | BN_clear_free(&point->Z); | 329 | BN_free(&point->Z); |
330 | point->Z_is_one = 0; | 330 | point->Z_is_one = 0; |
331 | } | 331 | } |
332 | 332 | ||
@@ -1324,7 +1324,7 @@ ec_GFp_simple_points_make_affine(const EC_GROUP *group, size_t num, EC_POINT *po | |||
1324 | * locally! | 1324 | * locally! |
1325 | */ | 1325 | */ |
1326 | for (i = pow2 / 2 - 1; i > 0; i--) { | 1326 | for (i = pow2 / 2 - 1; i > 0; i--) { |
1327 | BN_clear_free(heap[i]); | 1327 | BN_free(heap[i]); |
1328 | } | 1328 | } |
1329 | free(heap); | 1329 | free(heap); |
1330 | } | 1330 | } |