go/src/crypto
Caleb Spare 45d1c8ab59 crypto/tls: return a typed error on invalid record headers
The user can inspect the record data to detect that the other side is
not using the TLS protocol.

This will be used by the net/http client (in a follow-on CL) to detect
when an HTTPS client is speaking to an HTTP server.

Updates #11111.

Change-Id: I872f78717aa8e8e98cebd8075436209a52039a73
Reviewed-on: https://go-review.googlesource.com/16078
Reviewed-by: Adam Langley <agl@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2015-11-16 21:54:44 +00:00
..
aes crypto/tls, crypto/aes: remove allocations when Writing & Reading 2015-11-14 13:12:47 +00:00
cipher crypto/cipher: fix CTR infinite loop with large block sizes 2015-10-20 21:38:36 +00:00
des
dsa
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
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
tls crypto/tls: return a typed error on invalid record headers 2015-11-16 21:54:44 +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