Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for SignatureAlgorithm (0.51 sec)

  1. src/crypto/tls/handshake_server_tls13.go

    		}
    
    		// 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")
    		}
    		sigType, sigHash, err := typeAndHashFromSignatureScheme(certVerify.signatureAlgorithm)
    		if err != nil {
    			return c.sendAlert(alertInternalError)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  2. src/encoding/asn1/asn1_test.go

    		}
    	}
    }
    
    type Certificate struct {
    	TBSCertificate     TBSCertificate
    	SignatureAlgorithm AlgorithmIdentifier
    	SignatureValue     BitString
    }
    
    type TBSCertificate struct {
    	Version            int `asn1:"optional,explicit,default:0,tag:0"`
    	SerialNumber       RawValue
    	SignatureAlgorithm AlgorithmIdentifier
    	Issuer             RDNSequence
    	Validity           Validity
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 18:24:36 UTC 2023
    - 43.6K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_server.go

    		if c.vers >= VersionTLS12 {
    			if !isSupportedSignatureAlgorithm(certVerify.signatureAlgorithm, certReq.supportedSignatureAlgorithms) {
    				c.sendAlert(alertIllegalParameter)
    				return errors.New("tls: client certificate used with invalid signature algorithm")
    			}
    			sigType, sigHash, err = typeAndHashFromSignatureScheme(certVerify.signatureAlgorithm)
    			if err != nil {
    				return c.sendAlert(alertInternalError)
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. api/go1.6.txt

    pkg crypto/tls, type RecordHeaderError struct, Msg string
    pkg crypto/tls, type RecordHeaderError struct, RecordHeader [5]uint8
    pkg crypto/x509, method (InsecureAlgorithmError) Error() string
    pkg crypto/x509, method (SignatureAlgorithm) String() string
    pkg crypto/x509, type InsecureAlgorithmError int
    pkg database/sql, method (*DB) SetConnMaxLifetime(time.Duration)
    pkg debug/dwarf, const ClassUnknown = 0
    pkg debug/dwarf, const ClassUnknown Class
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 13 23:40:13 UTC 2016
    - 12.9K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_test.go

    // testRSAPSSCertificate has signatureAlgorithm rsassaPss, but subjectPublicKeyInfo
    // algorithm rsaEncryption, for use with the rsa_pss_rsae_* SignatureSchemes.
    // See also TestRSAPSSKeyError. testRSAPSSCertificate is self-signed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  6. pkg/controller/certificates/signer/signer_test.go

    		BasicConstraintsValid: true,
    		NotBefore:             fakeClock.Now().Add(-5 * time.Minute),
    		NotAfter:              fakeClock.Now().Add(1 * time.Hour),
    		PublicKeyAlgorithm:    x509.ECDSA,
    		SignatureAlgorithm:    x509.SHA256WithRSA,
    		MaxPathLen:            -1,
    	}
    
    	if !cmp.Equal(*certs[0], want, diff.IgnoreUnset()) {
    		t.Errorf("unexpected diff: %v", cmp.Diff(certs[0], want, diff.IgnoreUnset()))
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 21:12:04 UTC 2022
    - 15K bytes
    - Viewed (0)
  7. security/pkg/pki/util/generate_cert.go

    		} else {
    			subject.CommonName = cn
    		}
    	}
    
    	now := time.Now()
    
    	serialNum, err := genSerialNum()
    	if err != nil {
    		return nil, err
    	}
    	// SignatureAlgorithm will use the default algorithm.
    	// See https://golang.org/src/crypto/x509/x509.go?s=5131:5158#L1965 .
    	return &x509.Certificate{
    		SerialNumber:          serialNum,
    		Subject:               subject,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 02 14:34:38 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  8. src/crypto/tls/handshake_messages_test.go

    	}
    	return reflect.ValueOf(m)
    }
    
    func (*certificateVerifyMsg) Generate(rand *rand.Rand, size int) reflect.Value {
    	m := &certificateVerifyMsg{}
    	m.hasSignatureAlgorithm = true
    	m.signatureAlgorithm = SignatureScheme(rand.Intn(30000))
    	m.signature = randomBytes(rand.Intn(15)+1, rand)
    	return reflect.ValueOf(m)
    }
    
    func (*certificateStatusMsg) Generate(rand *rand.Rand, size int) reflect.Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  9. src/crypto/x509/parser.go

    		return nil, errors.New("x509: inner and outer signature algorithm identifiers don't match")
    	}
    	sigAI, err := parseAI(sigAISeq)
    	if err != nil {
    		return nil, err
    	}
    	cert.SignatureAlgorithm = getSignatureAlgorithmFromAI(sigAI)
    
    	var issuerSeq cryptobyte.String
    	if !tbs.ReadASN1Element(&issuerSeq, cryptobyte_asn1.SEQUENCE) {
    		return nil, errors.New("x509: malformed issuer")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
Back to top