]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: support CBC ciphers
authorAdam Langley <agl@golang.org>
Wed, 15 Dec 2010 16:49:55 +0000 (11:49 -0500)
committerAdam Langley <agl@golang.org>
Wed, 15 Dec 2010 16:49:55 +0000 (11:49 -0500)
commiteedf5c452974fc518bd6ec385730b61f016ddadf
tree220e91f1939993a3424ad71931f7bf688b22ac66
parent2f8ff0b81d38d2039c1827fd8b0744ff70c09497
crypto/tls: support CBC ciphers

This is largely based on ality's CL 2747042.

crypto/rc4: API break in order to conform to crypto/cipher's
Stream interface

cipher/cipher: promote to the default build

Since CBC differs between TLS 1.0 and 1.1, we downgrade and
support only 1.0 at the current time. 1.0 is what most of the
world uses.

Given this CL, it would be trival to add support for AES 256,
SHA 256 etc, but I haven't in order to keep the change smaller.

R=rsc
CC=ality, golang-dev
https://golang.org/cl/3659041
13 files changed:
src/pkg/Makefile
src/pkg/crypto/rc4/rc4.go
src/pkg/crypto/rc4/rc4_test.go
src/pkg/crypto/tls/Makefile
src/pkg/crypto/tls/cipher_suites.go [new file with mode: 0644]
src/pkg/crypto/tls/common.go
src/pkg/crypto/tls/conn.go
src/pkg/crypto/tls/conn_test.go [new file with mode: 0644]
src/pkg/crypto/tls/handshake_client.go
src/pkg/crypto/tls/handshake_server.go
src/pkg/crypto/tls/handshake_server_test.go
src/pkg/crypto/tls/prf.go
src/pkg/crypto/tls/prf_test.go