From c78515f55e2c135db3062514e9e28a53f5d81df5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Thu, 15 Nov 2001 22:35:41 +0000 Subject: [PATCH] comments etc. --- crypto/ec/ec_mult.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/ec/ec_mult.c b/crypto/ec/ec_mult.c index 60429e0d1e..a6707c9ab4 100644 --- a/crypto/ec/ec_mult.c +++ b/crypto/ec/ec_mult.c @@ -68,7 +68,7 @@ -/* Determine the width-(w+1) Non-Adjacent Form of 'scalar'. +/* Determine the width-(w+1) Non-Adjacent Form (wNAF) of 'scalar'. * This is an array r[] of values that are either zero or odd with an * absolute value less than 2^w satisfying * scalar = \sum_j r[j]*2^j @@ -87,7 +87,7 @@ static signed char *compute_wNAF(const BIGNUM *scalar, int w, size_t *ret_len, B c = BN_CTX_get(ctx); if (c == NULL) goto err; - if (w <= 0 || w > 7) /* 'unsigned char' can represent integers with absolute values less than 2^7 */ + if (w <= 0 || w > 7) /* 'signed char' can represent integers with absolute values less than 2^7 */ { ECerr(EC_F_COMPUTE_WNAF, ERR_R_INTERNAL_ERROR); goto err; @@ -197,9 +197,9 @@ int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, int r_is_inverted = 0; int r_is_at_infinity = 1; size_t *wsize = NULL; /* individual window sizes */ + signed char **wNAF = NULL; /* individual wNAFs */ size_t *wNAF_len = NULL; size_t max_len = 0; - signed char **wNAF = NULL; /* individual wNAFs */ size_t num_val; EC_POINT **val = NULL; /* precomputation */ EC_POINT **v; -- 2.25.1