Skip to content

Commit da3fb90

Browse files
FiloSottilegopherbot
authored andcommitted
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>
1 parent 9035f7a commit da3fb90

File tree

1 file changed

+1
-1
lines changed
  • src/crypto/internal/fips140/bigmod

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ func (x *Nat) GCDVarTime(a, b *Nat) (*Nat, error) {
10881088
return x.set(u), nil
10891089
}
10901090

1091-
// extendedGCD computes u and A such that a = GCD(a, m) and u = A*a - B*m.
1091+
// extendedGCD computes u and A such that u = GCD(a, m) = A*a - B*m.
10921092
//
10931093
// u will have the size of the larger of a and m, and A will have the size of m.
10941094
//

0 commit comments

Comments
 (0)