• Peter Wu's avatar
    crypto/tls: replace signatureAndHash by SignatureScheme. · d1bbdbe7
    Peter Wu authored
    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/62210Reviewed-by: 's avatarAdam Langley <agl@golang.org>
    d1bbdbe7
key_agreement.go 14.4 KB