]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: replace signatureAndHash by SignatureScheme.
authorPeter Wu <pwu@cloudflare.com>
Thu, 7 Sep 2017 16:50:10 +0000 (17:50 +0100)
committerAdam Langley <agl@golang.org>
Fri, 13 Oct 2017 23:25:03 +0000 (23:25 +0000)
commitd1bbdbe76092a1390383bf6168e95815b059e138
tree119e7f4875f86ff597476172d573a85fa7de9f27
parentc996d07feed18fdebaadf2c61e62cd8b14fe1aa7
crypto/tls: replace signatureAndHash by SignatureScheme.

Consolidate the signature and hash fields (SignatureAndHashAlgorithm in
TLS 1.2) into a single uint16 (SignatureScheme in TLS 1.3 draft 21).
This makes it easier to add RSASSA-PSS for TLS 1.2 in the future.

Fields were named like "signatureAlgorithm" rather than
"signatureScheme" since that name is also used throughout the 1.3 draft.

The only new public symbol is ECDSAWithSHA1, other than that this is an
internal change with no new functionality.

Change-Id: Iba63d262ab1af895420583ac9e302d9705a7e0f0
Reviewed-on: https://go-review.googlesource.com/62210
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/tls/common.go
src/crypto/tls/handshake_client.go
src/crypto/tls/handshake_messages.go
src/crypto/tls/handshake_messages_test.go
src/crypto/tls/handshake_server.go
src/crypto/tls/key_agreement.go
src/crypto/tls/prf.go