]> Cypherpunks repositories - gostls13.git/commit
crypto/{ecdsa,rsa}: always use io.ReadFull with crypto/rand.Reader.
authorAdam Langley <agl@golang.org>
Mon, 16 Mar 2015 23:42:12 +0000 (16:42 -0700)
committerAdam Langley <agl@golang.org>
Wed, 18 Mar 2015 00:37:48 +0000 (00:37 +0000)
commit123b38e105342ca65392ba8e20a089fe405b0791
treede463e7f4316f298e4e441c6f5c00e66e75635bf
parente14339d34cab4ae7abd7d0f83aacff9eed516ea2
crypto/{ecdsa,rsa}: always use io.ReadFull with crypto/rand.Reader.

crypto/rand.Reader doesn't ensure that short reads don't happen. This
change contains a couple of fixups where io.ReadFull wasn't being used
with it.

Change-Id: I3855b81f5890f2e703112eeea804aeba07b6a6b8
Reviewed-on: https://go-review.googlesource.com/7645
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/crypto/ecdsa/ecdsa.go
src/crypto/rsa/rsa.go