Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec
[platform/kernel/linux-starfive.git] / crypto / asymmetric_keys / x509_akid.asn1
1 -- X.509 AuthorityKeyIdentifier
2 -- rfc5280 section 4.2.1.1
3
4 AuthorityKeyIdentifier ::= SEQUENCE {
5         keyIdentifier                   [0] IMPLICIT KeyIdentifier              OPTIONAL,
6         authorityCertIssuer             [1] IMPLICIT GeneralNames               OPTIONAL,
7         authorityCertSerialNumber       [2] IMPLICIT CertificateSerialNumber    OPTIONAL
8         }
9
10 KeyIdentifier ::= OCTET STRING ({ x509_akid_note_kid })
11
12 CertificateSerialNumber ::= INTEGER ({ x509_akid_note_serial })
13
14 GeneralNames ::= SEQUENCE OF GeneralName
15
16 GeneralName ::= CHOICE {
17         otherName                       [0] ANY,
18         rfc822Name                      [1] IA5String,
19         dNSName                         [2] IA5String,
20         x400Address                     [3] ANY,
21         directoryName                   [4] Name ({ x509_akid_note_name }),
22         ediPartyName                    [5] ANY,
23         uniformResourceIdentifier       [6] IA5String,
24         iPAddress                       [7] OCTET STRING,
25         registeredID                    [8] OBJECT IDENTIFIER
26         }
27
28 Name ::= SEQUENCE OF RelativeDistinguishedName
29
30 RelativeDistinguishedName ::= SET OF AttributeValueAssertion
31
32 AttributeValueAssertion ::= SEQUENCE {
33         attributeType           OBJECT IDENTIFIER ({ x509_note_OID }),
34         attributeValue          ANY ({ x509_extract_name_segment })
35         }