Home | History | Annotate | Download | only in x509

Lines Matching full:x509

5 // Package x509 parses X.509-encoded keys and certificates.
6 package x509
18 "crypto/x509/pkix"
43 return nil, errors.New("x509: trailing data after ASN.1 of public-key")
47 return nil, errors.New("x509: unknown public key algorithm")
70 return nil, pkix.AlgorithmIdentifier{}, errors.New("x509: unsupported elliptic curve")
80 return nil, pkix.AlgorithmIdentifier{}, errors.New("x509: only RSA and ECDSA public keys supported")
539 var ErrUnsupportedAlgorithm = errors.New("x509: cannot verify signature: algorithm unimplemented")
547 return "x509: invalid signature: parent certificate cannot sign this kind of certificate"
671 return errors.New("x509: trailing data after DSA signature")
674 return errors.New("x509: DSA signature contained zero or negative values")
677 return errors.New("x509: DSA verification failure")
685 return errors.New("x509: trailing data after ECDSA signature")
688 return errors.New("x509: ECDSA signature contained zero or negative values")
691 return errors.New("x509: ECDSA verification failure")
707 return "x509: unhandled critical extension"
759 return nil, errors.New("x509: trailing data after RSA public key")
763 return nil, errors.New("x509: RSA modulus is not a positive number")
766 return nil, errors.New("x509: RSA public exponent is not a positive number")
781 return nil, errors.New("x509: trailing data after DSA public key")
790 return nil, errors.New("x509: trailing data after DSA parameters")
793 return nil, errors.New("x509: zero or negative DSA parameter")
812 return nil, errors.New("x509: trailing data after ECDSA parameters")
816 return nil, errors.New("x509: unsupported elliptic curve")
820 return nil, errors.New("x509: failed to unmarshal elliptic curve point")
855 err = errors.New("x509: trailing data after X.509 extension")
880 err = errors.New("x509: certificate contained IP address of length " + strconv.Itoa(len(v.Bytes)))
910 return nil, errors.New("x509: negative serial number")
920 return nil, errors.New("x509: trailing data after X.509 subject")
925 return nil, errors.New("x509: trailing data after X.509 subject")
946 return nil, errors.New("x509: trailing data after X.509 KeyUsage")
963 return nil, errors.New("x509: trailing data after X.509 BasicConstraints")
1002 return nil, errors.New("x509
1037 return nil, errors.New("x509: trailing data after X.509 CRL distribution point")
1060 return nil, errors.New("x509: trailing data after X.509 authority key-id")
1077 return nil, errors.New("x509: trailing data after X.509 ExtendedKeyUsage")
1094 return nil, errors.New("x509: trailing data after X.509 authority key-id")
1104 return nil, errors.New("x509: trailing data after X.509 certificate policies")
1121 return nil, errors.New("x509: trailing data after X.509 authority information")
1479 err = errors.New("x509: unknown elliptic curve")
1483 err = errors.New("x509: only RSA and ECDSA keys supported")
1498 err = errors.New("x509: requested SignatureAlgorithm does not match private key type")
1503 err = errors.New("x509: cannot sign with hash function requested")
1512 err = errors.New("x509: unknown SignatureAlgorithm")
1535 return nil, errors.New("x509: certificate private key does not implement crypto.Signer")
1606 var pemCRLPrefix = []byte("-----BEGIN X509 CRL")
1609 var pemType = "X509 CRL"
1631 return nil, errors.New("x509: trailing data after CRL")
1641 return nil, errors.New("x509: certificate private key does not implement crypto.Signer")
1764 return nil, errors.New("x509: failed to unmarshall raw CSR Attributes")
1796 return nil, errors.New("x509: certificate private key does not implement crypto.Signer")
1981 return nil, errors.New("x509: trailing data after X.509 Subject")
2003 return nil, errors.New("x509: extension attribute contained non-OCTET STRING data")