]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
ecp_nistp256.c: Fix exponent in comment
authorJonas Lindstrøm <jonas-lj@users.noreply.github.com>
Wed, 10 May 2023 10:47:10 +0000 (12:47 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 11 May 2023 17:45:34 +0000 (19:45 +0200)
CLA: trivial

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20926)

crypto/ec/ecp_nistp256.c

index f9b1fd1206765b5da632fdec9cca60a4a2a141c9..10b0fee7ec06e765ce62ad424957e78ece8414f9 100644 (file)
@@ -97,7 +97,7 @@ static const felem_bytearray nistp256_curve_params[5] = {
  * values, or four 64-bit values. The field element represented is:
  *   v[0]*2^0 + v[1]*2^64 + v[2]*2^128 + v[3]*2^192  (mod p)
  * or:
- *   v[0]*2^0 + v[1]*2^64 + v[2]*2^128 + ... + v[8]*2^512  (mod p)
+ *   v[0]*2^0 + v[1]*2^64 + v[2]*2^128 + ... + v[7]*2^448  (mod p)
  *
  * 128-bit values are called 'limbs'. Since the limbs are spaced only 64 bits
  * apart, but are 128-bits wide, the most significant bits of each limb overlap