From: Filippo Valsorda Date: Wed, 8 Oct 2025 11:43:08 +0000 (+0200) Subject: crypto/internal/fips140/bigmod: fix extendedGCD comment X-Git-Tag: go1.26rc1~430 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=da3fb90b231ef9c70e7eb927585ab49593cc25f1;p=gostls13.git crypto/internal/fips140/bigmod: fix extendedGCD comment Change-Id: I6a6a6964642991dc46929bfc47e411bb7563e425 Reviewed-on: https://go-review.googlesource.com/c/go/+/716080 Auto-Submit: Filippo Valsorda Reviewed-by: Roland Shoemaker Reviewed-by: Michael Knyszek LUCI-TryBot-Result: Go LUCI --- diff --git a/src/crypto/internal/fips140/bigmod/nat.go b/src/crypto/internal/fips140/bigmod/nat.go index 7b690178b9..2d5921dbbc 100644 --- a/src/crypto/internal/fips140/bigmod/nat.go +++ b/src/crypto/internal/fips140/bigmod/nat.go @@ -1088,7 +1088,7 @@ func (x *Nat) GCDVarTime(a, b *Nat) (*Nat, error) { return x.set(u), nil } -// extendedGCD computes u and A such that a = GCD(a, m) and u = A*a - B*m. +// extendedGCD computes u and A such that u = GCD(a, m) = A*a - B*m. // // u will have the size of the larger of a and m, and A will have the size of m. //