1
0
mirror of https://github.com/golang/go synced 2024-11-24 00:30:15 -07:00
go/src
Joël Stemmer ebe3d693d4 crypto/tls: return correct hash function when using client certificates in handshake
Commit f1d669aee9 added support for
AES_256_GCM_SHA384 cipher suites as specified in RFC5289. However, it
did not take the arbitrary hash function into account in the TLS client
handshake when using client certificates.

The hashForClientCertificate method always returned SHA256 as its
hashing function, even if it actually used a different one to calculate
its digest. Setting up the connection would eventually fail with the
error "tls: failed to sign handshake with client certificate:
crypto/rsa: input must be hashed message".

Included is an additional test for this specific situation that uses the
SHA384 hash.

Fixes #9808

Change-Id: Iccbf4ab225633471ef897907c208ad31f92855a3
Reviewed-on: https://go-review.googlesource.com/7040
Reviewed-by: Adam Langley <agl@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
2015-03-16 23:38:51 +00:00
..
archive archive/zip: remove WriterOptions and replace with SetOffset method 2015-03-12 21:32:09 +00:00
bufio
builtin
bytes
cmd cmd/internal/obj: add basic test of line history 2015-03-16 23:07:28 +00:00
compress
container
crypto crypto/tls: return correct hash function when using client certificates in handshake 2015-03-16 23:38:51 +00:00
database/sql
debug debug/elf: support reading debug info from 32-bit PPC objects 2015-03-14 01:31:28 +00:00
encoding encoding/binary: cull dead code 2015-03-14 02:51:22 +00:00
errors
expvar
flag flag: use four spaces before tab, not three 2015-03-12 18:43:06 +00:00
fmt
go go/build: add GOARCH=arm64 2015-03-16 18:44:35 +00:00
hash os/signal, hash/crc32: add arm64 build tags 2015-03-16 18:46:43 +00:00
html
image image/jpeg: reject bad Tq values in SOF data. 2015-03-13 05:22:55 +00:00
index/suffixarray
internal cmd/trace: move goroutine analysis code to internal/trace 2015-03-11 12:53:24 +00:00
io
log log/syslog: avoid unix sockets on darwin/arm 2015-03-04 22:13:06 +00:00
math math, math/big: add support for GOARCH=arm64 2015-03-16 18:46:10 +00:00
mime
net net/http/pprof: Use relative links to profiles in index html 2015-03-12 01:13:26 +00:00
os os/signal, hash/crc32: add arm64 build tags 2015-03-16 18:46:43 +00:00
path path/filepath: clarify the package doc about '/' in returned results. 2015-03-11 20:25:35 +00:00
reflect reflect: add support for GOARCH=arm64 2015-03-16 18:46:27 +00:00
regexp
runtime runtime: add support for linux/arm64 2015-03-16 18:45:54 +00:00
sort
strconv strconv: simplify code for binary exponent float format 2015-03-05 16:52:41 +00:00
strings
sync sync/atomic: add support for GOARCH=arm64 2015-03-16 18:46:18 +00:00
syscall syscall: add support for GOARCH=arm64 2015-03-16 18:46:02 +00:00
testing
text text/template: protect against explicit nil in field chains 2015-03-16 22:35:49 +00:00
time
unicode
unsafe
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
clean.bash
clean.bat
clean.rc
make.bash
make.bat
Make.dist
make.rc
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc