diff options
author | Filippo Valsorda <filippo@golang.org> | 2018-04-09 14:43:52 -0400 |
---|---|---|
committer | Filippo Valsorda <filippo@golang.org> | 2018-04-09 19:03:04 +0000 |
commit | c90e0504c004cbd891a7ceda67b5e0bc132bc8d5 (patch) | |
tree | 5444f968df83b7134a4d0a683e2cb4d4a69818e9 /src/crypto/rsa/rsa.go | |
parent | 0de0ed369f902675cdfa9ed164497ae81c42bcdd (diff) | |
download | go-c90e0504c004cbd891a7ceda67b5e0bc132bc8d5.tar.gz go-c90e0504c004cbd891a7ceda67b5e0bc132bc8d5.zip |
crypto/rsa: improve the comment of PublicKey.Size
Change-Id: Ic507cb740395e76d1d011a5a2f395b96c3d172a2
Reviewed-on: https://go-review.googlesource.com/105915
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/crypto/rsa/rsa.go')
-rw-r--r-- | src/crypto/rsa/rsa.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/rsa/rsa.go b/src/crypto/rsa/rsa.go index c9fa6fbc35..38cd568437 100644 --- a/src/crypto/rsa/rsa.go +++ b/src/crypto/rsa/rsa.go @@ -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 } |