Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getSignatureAlgorithmFromAI (0.29 sec)

  1. 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")
    	}
    	cert.RawIssuer = issuerSeq
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  2. src/crypto/x509/x509.go

    	SaltLength   int                      `asn1:"explicit,tag:2"`
    	TrailerField int                      `asn1:"optional,explicit,tag:3,default:1"`
    }
    
    func getSignatureAlgorithmFromAI(ai pkix.AlgorithmIdentifier) SignatureAlgorithm {
    	if ai.Algorithm.Equal(oidSignatureEd25519) {
    		// RFC 8410, Section 3
    		// > For all of the OIDs, the parameters MUST be absent.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
Back to top