]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/internal/fips140/bigmod: fix extendedGCD comment
authorFilippo Valsorda <filippo@golang.org>
Wed, 8 Oct 2025 11:43:08 +0000 (13:43 +0200)
committerGopher Robot <gobot@golang.org>
Wed, 29 Oct 2025 18:26:42 +0000 (11:26 -0700)
Change-Id: I6a6a6964642991dc46929bfc47e411bb7563e425
Reviewed-on: https://go-review.googlesource.com/c/go/+/716080
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/crypto/internal/fips140/bigmod/nat.go

index 7b690178b9e1464a0e24b6537090f244e6cf9c57..2d5921dbbc514d927fe7d3ba4639fe24a0241aae 100644 (file)
@@ -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.
 //