• Peter Wu's avatar
    crypto/tls: consolidate signatures handling in SKE and CV · c89d75f9
    Peter Wu authored
    ServerKeyExchange and CertificateVerify can share the same logic for
    picking a signature algorithm (based on the certificate public key and
    advertised algorithms), selecting a hash algorithm (depending on TLS
    version) and signature verification.
    
    Refactor the code to achieve code reuse, have common error checking
    (especially for intersecting supported signature algorithms) and to
    prepare for addition of new signature algorithms. Code should be easier
    to read since version-dependent logic is concentrated at one place.
    
    Change-Id: I978dec3815d28e33c3cfbc85f0c704b1894c25a3
    Reviewed-on: https://go-review.googlesource.com/79735Reviewed-by: 's avatarFilippo Valsorda <filippo@golang.org>
    Run-TryBot: Filippo Valsorda <filippo@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    c89d75f9
Name
Last commit
Last update
..
testdata Loading commit data...
alert.go Loading commit data...
auth.go Loading commit data...
auth_test.go Loading commit data...
cipher_suites.go Loading commit data...
common.go Loading commit data...
conn.go Loading commit data...
conn_test.go Loading commit data...
example_test.go Loading commit data...
generate_cert.go Loading commit data...
handshake_client.go Loading commit data...
handshake_client_test.go Loading commit data...
handshake_messages.go Loading commit data...
handshake_messages_test.go Loading commit data...
handshake_server.go Loading commit data...
handshake_server_test.go Loading commit data...
handshake_test.go Loading commit data...
key_agreement.go Loading commit data...
prf.go Loading commit data...
prf_test.go Loading commit data...
ticket.go Loading commit data...
tls.go Loading commit data...
tls_test.go Loading commit data...