]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/rsa: improve the comment of PublicKey.Size
authorFilippo Valsorda <filippo@golang.org>
Mon, 9 Apr 2018 18:43:52 +0000 (14:43 -0400)
committerFilippo Valsorda <filippo@golang.org>
Mon, 9 Apr 2018 19:03:04 +0000 (19:03 +0000)
Change-Id: Ic507cb740395e76d1d011a5a2f395b96c3d172a2
Reviewed-on: https://go-review.googlesource.com/105915
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/rsa/rsa.go

index c9fa6fbc35d1a9a51b515dd1feda6402727df223..38cd568437ec21728e48464e20799e1cf2b9f081 100644 (file)
@@ -42,7 +42,8 @@ type PublicKey struct {
        E int      // public exponent
 }
 
-// Size returns the number of bytes for signatures from this key.
+// Size returns the modulus size in bytes. Raw signatures and ciphertexts
+// for or by this public key will have the same size.
 func (pub *PublicKey) Size() int {
        return (pub.N.BitLen() + 7) / 8
 }