go/src/crypto
Ralph Corderoy 9c8cd83753 crypto/tls: len(clientRandom) used for serverRandom source
In keysFromMasterSecret(), don't copy from serverRandom into
seed[:len(clientRandom)].  Actually, switch from an array to a slice in
keysFromMasterSecret() and masterFromPreMasterSecret() so the length
need not be given;  that's how it's done elsewhere in the file.

Fixes #13181

Change-Id: I92abaa892d1bba80c2d4f12776341cda7d538837
Reviewed-on: https://go-review.googlesource.com/16697
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Adam Langley <agl@golang.org>
2015-11-10 22:17:54 +00:00
..
aes crypto/aes: dedicated asm version of AES-GCM 2015-08-29 21:02:38 +00:00
cipher crypto/cipher: fix CTR infinite loop with large block sizes 2015-10-20 21:38:36 +00:00
des build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
dsa build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
ecdsa crypto/elliptic,crypto/ecdsa: P256 amd64 assembly 2015-11-10 22:16:56 +00:00
elliptic crypto/elliptic,crypto/ecdsa: P256 amd64 assembly 2015-11-10 22:16:56 +00:00
hmac all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
md5 crypto/md5: uniform Write func 2015-11-04 15:41:25 +00:00
rand crypt/rand: update docs for Linux 2015-07-26 02:57:16 +00:00
rc4 [dev.cc] cmd/asm: make 4(SP) illegal except on 386 2015-02-18 03:41:29 +00:00
rsa all: fix some vet-caught formatting errors, mostly but not only in tests 2015-08-21 05:37:36 +00:00
sha1 [dev.cc] crypto/md5, crypto/sha1: restore a few SP references 2015-02-20 18:54:29 +00:00
sha256 build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sha512 crypto: add SHA-512/224 and SHA-512/256 as described in FIPS 180-4 2015-07-14 19:45:21 +00:00
subtle build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
tls crypto/tls: len(clientRandom) used for serverRandom source 2015-11-10 22:17:54 +00:00
x509 crypto/x509: add /etc/ssl/certs to certificate directories 2015-11-05 02:26:08 +00:00
crypto.go crypto: add SHA-512/224 and SHA-512/256 as described in FIPS 180-4 2015-07-14 19:45:21 +00:00