]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/rsa: fix docs for PrecomputedValues.Qinv
authorShenghou Ma <minux.ma@gmail.com>
Tue, 11 Mar 2014 17:06:01 +0000 (13:06 -0400)
committerShenghou Ma <minux.ma@gmail.com>
Tue, 11 Mar 2014 17:06:01 +0000 (13:06 -0400)
Fixes #7507.

LGTM=agl
R=agl
CC=golang-codereviews
https://golang.org/cl/74090043

src/pkg/crypto/rsa/rsa.go

index c8f1febe64705e2306c794036c7c64045d371050..bce6ba4eba31121edfb394f6112b23500461ac14 100644 (file)
@@ -60,7 +60,7 @@ type PrivateKey struct {
 
 type PrecomputedValues struct {
        Dp, Dq *big.Int // D mod (P-1) (or mod Q-1)
-       Qinv   *big.Int // Q^-1 mod Q
+       Qinv   *big.Int // Q^-1 mod P
 
        // CRTValues is used for the 3rd and subsequent primes. Due to a
        // historical accident, the CRT for the first two primes is handled