From: Filippo Valsorda Date: Mon, 9 Apr 2018 18:43:52 +0000 (-0400) Subject: crypto/rsa: improve the comment of PublicKey.Size X-Git-Tag: go1.11beta1~919 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c90e0504c004cbd891a7ceda67b5e0bc132bc8d5;p=gostls13.git crypto/rsa: improve the comment of PublicKey.Size Change-Id: Ic507cb740395e76d1d011a5a2f395b96c3d172a2 Reviewed-on: https://go-review.googlesource.com/105915 Reviewed-by: Brad Fitzpatrick --- 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 }