diff options
author | tb <> | 2024-11-22 00:54:42 +0000 |
---|---|---|
committer | tb <> | 2024-11-22 00:54:42 +0000 |
commit | aaf63a8a1fa171ee71d207193dc1f5972cc5faa9 (patch) | |
tree | 2f2e4515d4c13cf130a07ed0abfb70db07e9c858 | |
parent | f92aaf708c114aa21014cf16e0e1788a766660ac (diff) | |
download | openbsd-aaf63a8a1fa171ee71d207193dc1f5972cc5faa9.tar.gz openbsd-aaf63a8a1fa171ee71d207193dc1f5972cc5faa9.tar.bz2 openbsd-aaf63a8a1fa171ee71d207193dc1f5972cc5faa9.zip |
Garbage collect the now unused totalnum
-rw-r--r-- | src/lib/libcrypto/ec/ec_mult.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ec/ec_mult.c b/src/lib/libcrypto/ec/ec_mult.c index 756abf1a3d..43fab4b83c 100644 --- a/src/lib/libcrypto/ec/ec_mult.c +++ b/src/lib/libcrypto/ec/ec_mult.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_mult.c,v 1.40 2024/11/22 00:52:39 tb Exp $ */ | 1 | /* $OpenBSD: ec_mult.c,v 1.41 2024/11/22 00:54:42 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller and Nils Larsch for the OpenSSL project. | 3 | * Originally written by Bodo Moeller and Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -233,7 +233,6 @@ ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, | |||
233 | const EC_POINT *generator = NULL; | 233 | const EC_POINT *generator = NULL; |
234 | EC_POINT *tmp = NULL; | 234 | EC_POINT *tmp = NULL; |
235 | EC_POINT **row[2] = { 0 }; | 235 | EC_POINT **row[2] = { 0 }; |
236 | size_t totalnum; | ||
237 | size_t i, j; | 236 | size_t i, j; |
238 | int k; | 237 | int k; |
239 | int r_is_inverted = 0; | 238 | int r_is_inverted = 0; |
@@ -257,8 +256,6 @@ ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, | |||
257 | goto err; | 256 | goto err; |
258 | } | 257 | } |
259 | 258 | ||
260 | totalnum = 2; | ||
261 | |||
262 | /* num_val will be the total number of temporarily precomputed points */ | 259 | /* num_val will be the total number of temporarily precomputed points */ |
263 | num_val = 0; | 260 | num_val = 0; |
264 | 261 | ||
@@ -350,7 +347,7 @@ ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, | |||
350 | if (!EC_POINT_dbl(group, r, r, ctx)) | 347 | if (!EC_POINT_dbl(group, r, r, ctx)) |
351 | goto err; | 348 | goto err; |
352 | 349 | ||
353 | for (i = 0; i < totalnum; i++) { | 350 | for (i = 0; i < 2; i++) { |
354 | int digit; | 351 | int digit; |
355 | int is_neg = 0; | 352 | int is_neg = 0; |
356 | 353 | ||