Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for UnknownPublicKeyAlgorithm (0.68 sec)

  1. src/crypto/x509/x509.go

    		if details.algo == algo {
    			return details.name
    		}
    	}
    	return strconv.Itoa(int(algo))
    }
    
    type PublicKeyAlgorithm int
    
    const (
    	UnknownPublicKeyAlgorithm PublicKeyAlgorithm = iota
    	RSA
    	DSA // Only supported for parsing.
    	ECDSA
    	Ed25519
    )
    
    var publicKeyAlgoName = [...]string{
    	RSA:     "RSA",
    	DSA:     "DSA",
    	ECDSA:   "ECDSA",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  2. src/crypto/x509/parser.go

    	var spk asn1.BitString
    	if !spki.ReadASN1BitString(&spk) {
    		return nil, errors.New("x509: malformed subjectPublicKey")
    	}
    	if cert.PublicKeyAlgorithm != UnknownPublicKeyAlgorithm {
    		cert.PublicKey, err = parsePublicKey(&publicKeyInfo{
    			Algorithm: pkAI,
    			PublicKey: spk,
    		})
    		if err != nil {
    			return nil, err
    		}
    	}
    
    	if cert.Version > 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  3. src/crypto/x509/x509_test.go

    			name: "invalid issuer, unsupported public key type",
    			issuer: &Certificate{
    				Version:               3,
    				BasicConstraintsValid: true,
    				IsCA:                  true,
    				PublicKeyAlgorithm:    UnknownPublicKeyAlgorithm,
    				PublicKey:             goodKey.Public(),
    			},
    			err: "x509: cannot verify signature: algorithm unimplemented",
    		},
    		{
    			name: "wrong key",
    			issuer: &Certificate{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"TooManyIntermediates", Const, 0},
    		{"UnconstrainedName", Const, 10},
    		{"UnhandledCriticalExtension", Type, 0},
    		{"UnknownAuthorityError", Type, 0},
    		{"UnknownAuthorityError.Cert", Field, 8},
    		{"UnknownPublicKeyAlgorithm", Const, 0},
    		{"UnknownSignatureAlgorithm", Const, 0},
    		{"VerifyOptions", Type, 0},
    		{"VerifyOptions.CurrentTime", Field, 0},
    		{"VerifyOptions.DNSName", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top