From: Jonas Lindstrøm Date: Wed, 10 May 2023 10:47:10 +0000 (+0200) Subject: ecp_nistp256.c: Fix exponent in comment X-Git-Tag: openssl-3.2.0-alpha1~890 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13069d0144096ef8cecc82fb7fcd1a1eed93d7a8;p=thirdparty%2Fopenssl.git ecp_nistp256.c: Fix exponent in comment CLA: trivial Reviewed-by: Hugo Landau Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/20926) --- diff --git a/crypto/ec/ecp_nistp256.c b/crypto/ec/ecp_nistp256.c index f9b1fd12067..10b0fee7ec0 100644 --- a/crypto/ec/ecp_nistp256.c +++ b/crypto/ec/ecp_nistp256.c @@ -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