Home | History | Annotate | Download | only in x509

Lines Matching refs:KEY

30 // pkixPublicKey reflects a PKIX public key structure. See SubjectPublicKeyInfo
37 // ParsePKIXPublicKey parses a DER encoded public key. These values are
38 // typically found in PEM blocks with "BEGIN PUBLIC KEY".
40 // Supported key types include RSA, DSA, and ECDSA. Unknown key
50 return nil, errors.New("x509: trailing data after ASN.1 of public-key")
54 return nil, errors.New("x509: unknown public key algorithm")
95 // MarshalPKIXPublicKey serialises a public key to DER-encoded PKIX format.
442 // RFC 3279, 2.3 Public Key Algorithms
526 // KeyUsage represents the set of actions that are valid for a given key. It's
542 // RFC 5280, 4.2.1.12 Extended Key Usage
569 // ExtKeyUsage represents an extended set of actions that are valid for a given key.
668 ExtKeyUsage []ExtKeyUsage // Sequence of extended key usages.
669 UnknownExtKeyUsage []asn1.ObjectIdentifier // Encountered extended key usages unknown to this package.
714 // a certificate. For example: checking a signature when the public key isn't a
715 // certificate signing key.
781 // asserted, then the certified public key MUST NOT be used to verify
804 // c's public key.
937 return nil, errors.New("x509: RSA key missing NULL parameters")
946 return nil, errors.New("x509: trailing data after RSA public key")
968 return nil, errors.New("x509: trailing data after DSA public key")
1248 return nil, errors.New("x509: trailing data after X.509 authority key-id")
1253 // RFC 5280, 4.2.1.12. Extended Key Usage
1282 return nil, errors.New("x509: trailing data after X.509 key-id")
1686 err = errors.New("x509: requested SignatureAlgorithm does not match private key type")
1716 // certificate is self-signed. The parameter pub is the public key of the
1717 // signee and priv is the private key of the signer.
1724 key, ok := priv.(crypto.Signer)
1726 return nil, errors.New("x509: certificate private key does not implement crypto.Signer")
1733 hashFunc, signatureAlgorithm, err := signingParamsForPublicKey(key.Public(), template.SignatureAlgorithm)
1795 signature, err = key.Sign(rand, digest, signerOpts)
1843 key, ok := priv.(crypto.Signer)
1845 return nil, errors.New("x509: certificate private key does not implement crypto.Signer")
1848 hashFunc, signatureAlgorithm, err := signingParamsForPublicKey(key.Public(), 0)
1869 // Authority Key Id
1890 signature, err = key.Sign(rand, digest, hashFunc)
2031 // The private key is the private key of the signer.
2038 key, ok := priv.(crypto.Signer)
2040 return nil, errors.New("x509: certificate private key does not implement crypto.Signer")
2045 hashFunc, sigAlgo, err = signingParamsForPublicKey(key.Public(), template.SignatureAlgorithm)
2052 publicKeyBytes, publicKeyAlgorithm, err = marshalPublicKey(key.Public())
2169 signature, err = key.Sign(rand, digest, hashFunc)