Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for isSupportedSignatureAlgorithm (0.2 sec)

  1. src/crypto/tls/auth.go

    	// preference order is not configurable.
    	for _, preferredAlg := range peerAlgs {
    		if needFIPS() && !isSupportedSignatureAlgorithm(preferredAlg, defaultSupportedSignatureAlgorithmsFIPS) {
    			continue
    		}
    		if isSupportedSignatureAlgorithm(preferredAlg, supportedAlgs) {
    			return preferredAlg, nil
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. src/crypto/tls/key_agreement.go

    	if ka.version >= VersionTLS12 {
    		signatureAlgorithm := SignatureScheme(sig[0])<<8 | SignatureScheme(sig[1])
    		sig = sig[2:]
    		if len(sig) < 2 {
    			return errServerKeyExchange
    		}
    
    		if !isSupportedSignatureAlgorithm(signatureAlgorithm, clientHello.supportedSignatureAlgorithms) {
    			return errors.New("tls: certificate used with invalid signature algorithm")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_client_tls13.go

    	}
    
    	certVerify, ok := msg.(*certificateVerifyMsg)
    	if !ok {
    		c.sendAlert(alertUnexpectedMessage)
    		return unexpectedMessageError(certVerify, msg)
    	}
    
    	// See RFC 8446, Section 4.4.3.
    	if !isSupportedSignatureAlgorithm(certVerify.signatureAlgorithm, supportedSignatureAlgorithms()) {
    		c.sendAlert(alertIllegalParameter)
    		return errors.New("tls: certificate used with invalid signature algorithm")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  4. src/crypto/tls/handshake_server.go

    		if !ok {
    			c.sendAlert(alertUnexpectedMessage)
    			return unexpectedMessageError(certVerify, msg)
    		}
    
    		var sigType uint8
    		var sigHash crypto.Hash
    		if c.vers >= VersionTLS12 {
    			if !isSupportedSignatureAlgorithm(certVerify.signatureAlgorithm, certReq.supportedSignatureAlgorithms) {
    				c.sendAlert(alertIllegalParameter)
    				return errors.New("tls: client certificate used with invalid signature algorithm")
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_server_tls13.go

    		certVerify, ok := msg.(*certificateVerifyMsg)
    		if !ok {
    			c.sendAlert(alertUnexpectedMessage)
    			return unexpectedMessageError(certVerify, msg)
    		}
    
    		// See RFC 8446, Section 4.4.3.
    		if !isSupportedSignatureAlgorithm(certVerify.signatureAlgorithm, supportedSignatureAlgorithms()) {
    			c.sendAlert(alertIllegalParameter)
    			return errors.New("tls: client certificate used with invalid signature algorithm")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  6. src/crypto/tls/common.go

    func supportedSignatureAlgorithms() []SignatureScheme {
    	if !needFIPS() {
    		return defaultSupportedSignatureAlgorithms
    	}
    	return defaultSupportedSignatureAlgorithmsFIPS
    }
    
    func isSupportedSignatureAlgorithm(sigAlg SignatureScheme, supportedSignatureAlgorithms []SignatureScheme) bool {
    	for _, s := range supportedSignatureAlgorithms {
    		if s == sigAlg {
    			return true
    		}
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
Back to top