From da3fb90b231ef9c70e7eb927585ab49593cc25f1 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Wed, 8 Oct 2025 13:43:08 +0200 Subject: [PATCH] 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 --- src/crypto/internal/fips140/bigmod/nat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. // -- 2.52.0