// is only used for >= TLS 1.2 and identifies the hash function to use.
func hashForServerKeyExchange(sigType uint8, signatureAlgorithm SignatureScheme, version uint16, slices ...[]byte) ([]byte, crypto.Hash, error) {
if version >= VersionTLS12 {
- if !isSupportedSignatureAlgorithm(signatureAlgorithm, supportedSignatureAlgorithms) {
+ if !isSupportedSignatureAlgorithm(signatureAlgorithm, supportedSignatureAlgorithms()) {
return nil, crypto.Hash(0), errors.New("tls: unsupported hash function used by peer")
}
hashFunc, err := lookupTLSHash(signatureAlgorithm)
if signatureFromSignatureScheme(sigAlg) != sigType {
continue
}
- if isSupportedSignatureAlgorithm(sigAlg, supportedSignatureAlgorithms) {
+ if isSupportedSignatureAlgorithm(sigAlg, supportedSignatureAlgorithms()) {
return sigAlg, nil
}
}