Lines Matching refs:PKIX
18 "crypto/x509/pkix"
29 // pkixPublicKey reflects a PKIX public key structure. See SubjectPublicKeyInfo
32 Algo pkix.AlgorithmIdentifier
52 func marshalPublicKey(pub interface{}) (publicKeyBytes []byte, publicKeyAlgorithm pkix.AlgorithmIdentifier, err error) {
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")
86 // MarshalPKIXPublicKey serialises a public key to DER-encoded PKIX format.
89 var publicKeyAlgorithm pkix.AlgorithmIdentifier
96 pkix := pkixPublicKey{
104 ret, _ := asn1.Marshal(pkix)
113 SignatureAlgorithm pkix.AlgorithmIdentifier
121 SignatureAlgorithm pkix.AlgorithmIdentifier
128 Extensions []pkix.Extension `asn1:"optional,explicit,tag:3"`
147 Algorithm pkix.AlgorithmIdentifier
381 // id-kp OBJECT IDENTIFIER ::= { id-pkix 3 }
476 Issuer pkix.Name
477 Subject pkix.Name
485 Extensions []pkix.Extension
491 ExtraExtensions []pkix.Extension
556 // according to PKIX.
699 func (c *Certificate) CheckCRLSignature(crl *pkix.CertificateList) (err error) {
746 RelativeName pkix.RDNSequence `asn1:"optional,tag:1"`
916 var issuer, subject pkix.RDNSequence
1236 func oidInExtensions(oid asn1.ObjectIdentifier, extensions []pkix.Extension) bool {
1266 func buildExtensions(template *Certificate) (ret []pkix.Extension, err error) {
1267 ret = make([]pkix.Extension, 10 /* maximum number of elements. */)
1453 func signingParamsForPublicKey(pub interface{}, requestedSigAlgo SignatureAlgorithm) (hashFunc crypto.Hash, sigAlgo pkix.AlgorithmIdentifier, err error) {
1615 func ParseCRL(crlBytes []byte) (certList *pkix.CertificateList, err error) {
1626 func ParseDERCRL(derBytes []byte) (certList *pkix.CertificateList, err error) {
1627 certList = new(pkix.CertificateList)
1638 func (c *Certificate) CreateCRL(rand io.Reader, priv interface{}, revokedCerts []pkix.RevokedCertificate, now, expiry time.Time) (crlBytes []byte, err error) {
1649 tbsCertList := pkix.TBSCertificateList{
1660 var aki pkix.Extension
1684 return asn1.Marshal(pkix.CertificateList{
1705 Subject pkix.Name
1710 Attributes []pkix.AttributeTypeAndValueSET
1715 Extensions []pkix.Extension
1724 ExtraExtensions []pkix.Extension
1746 SignatureAlgorithm pkix.AlgorithmIdentifier
1756 func newRawAttributes(attributes []pkix.AttributeTypeAndValueSET) ([]asn1.RawValue, error) {
1770 func parseRawAttributes(rawAttributes []asn1.RawValue) []pkix.AttributeTypeAndValueSET {
1771 var attributes []pkix.AttributeTypeAndValueSET
1773 var attr pkix.AttributeTypeAndValueSET
1775 // Ignore attributes that don't parse into pkix.AttributeTypeAndValueSET
1800 var sigAlgo pkix.AlgorithmIdentifier
1807 var publicKeyAlgorithm pkix.AlgorithmIdentifier
1813 var extensions []pkix.Extension
1822 extensions = append(extensions, pkix.Extension{
1830 var attributes []pkix.AttributeTypeAndValueSET
1850 atvs := make([]pkix.AttributeTypeAndValue, 0, len(extensions))
1858 atvs = append(atvs, pkix.AttributeTypeAndValue{
1879 attributes = append(attributes, pkix.AttributeTypeAndValueSET{
1881 Value: [][]pkix.AttributeTypeAndValue{
1977 var subject pkix.RDNSequence
1986 var extensions []pkix.AttributeTypeAndValue
1998 out.Extensions = make([]pkix.Extension, 0, len(extensions))
2006 out.Extensions = append(out.Extensions, pkix.Extension{