]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: support X25519.
authorAdam Langley <agl@golang.org>
Tue, 11 Oct 2016 01:23:37 +0000 (18:23 -0700)
committerAdam Langley <agl@golang.org>
Wed, 12 Oct 2016 17:04:28 +0000 (17:04 +0000)
commit8a11cb318f5c4c15b67ffe9ff9b2fa772bf1dd85
tree8e06ac858a1d47422a10381498d3db1d19f2f883
parent8c74139cada0b7da5a0914ee0afd75837b6f682d
crypto/tls: support X25519.

X25519 (RFC 7748) is now commonly used for key agreement in TLS
connections, as specified in
https://tools.ietf.org/html/draft-ietf-tls-curve25519-01.

This change adds support for that in crypto/tls, but does not enabled it
by default so that there's less test noise. A future change will enable
it by default and will update all the test data at the same time.

Change-Id: I91802ecd776d73aae5c65bcb653d12e23c413ed4
Reviewed-on: https://go-review.googlesource.com/30824
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/tls/common.go
src/crypto/tls/handshake_client_test.go
src/crypto/tls/handshake_server_test.go
src/crypto/tls/key_agreement.go
src/crypto/tls/testdata/Client-TLSv12-X25519-ECDHE-RSA-AES-GCM [new file with mode: 0644]
src/crypto/tls/testdata/Server-TLSv12-X25519-ECDHE-RSA-AES-GCM [new file with mode: 0644]
src/go/build/deps_test.go