diff options
| author | Filippo Valsorda <filippo@golang.org> | 2025-10-08 13:43:08 +0200 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-10-29 11:26:42 -0700 |
| commit | da3fb90b231ef9c70e7eb927585ab49593cc25f1 (patch) | |
| tree | d2175da94b9246141b855c481818351755391597 /src/crypto | |
| parent | 9035f7aea538c25a11420bce7cbd8225efc204e7 (diff) | |
| download | go-da3fb90b231ef9c70e7eb927585ab49593cc25f1.tar.xz | |
crypto/internal/fips140/bigmod: fix extendedGCD comment
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>
Diffstat (limited to 'src/crypto')
| -rw-r--r-- | src/crypto/internal/fips140/bigmod/nat.go | 2 |
1 files changed, 1 insertions, 1 deletions
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. // |
