xref: /linux/crypto/asymmetric_keys/x509_akid.asn1 (revision ad30469a841b50dbb541df4d6971d891f703c297)
1-- SPDX-License-Identifier: BSD-3-Clause
2--
3-- Copyright (C) 2008 IETF Trust and the persons identified as authors
4-- of the code
5--
6-- X.509 AuthorityKeyIdentifier
7-- rfc5280 section 4.2.1.1
8
9AuthorityKeyIdentifier ::= SEQUENCE {
10	keyIdentifier			[0] IMPLICIT KeyIdentifier		OPTIONAL,
11	authorityCertIssuer		[1] IMPLICIT GeneralNames		OPTIONAL,
12	authorityCertSerialNumber	[2] IMPLICIT CertificateSerialNumber	OPTIONAL
13	}
14
15KeyIdentifier ::= OCTET STRING ({ x509_akid_note_kid })
16
17CertificateSerialNumber ::= INTEGER ({ x509_akid_note_serial })
18
19GeneralNames ::= SEQUENCE OF GeneralName
20
21GeneralName ::= CHOICE {
22	otherName			[0] IMPLICIT OtherName,
23	rfc822Name			[1] IMPLICIT IA5String,
24	dNSName				[2] IMPLICIT IA5String,
25	x400Address			[3] ANY,
26	directoryName			[4] Name ({ x509_akid_note_name }),
27	ediPartyName			[5] IMPLICIT EDIPartyName,
28	uniformResourceIdentifier	[6] IMPLICIT IA5String,
29	iPAddress			[7] IMPLICIT OCTET STRING,
30	registeredID			[8] IMPLICIT OBJECT IDENTIFIER
31	}
32
33Name ::= SEQUENCE OF RelativeDistinguishedName
34
35RelativeDistinguishedName ::= SET OF AttributeValueAssertion
36
37AttributeValueAssertion ::= SEQUENCE {
38	attributeType		OBJECT IDENTIFIER ({ x509_note_OID }),
39	attributeValue		ANY ({ x509_extract_name_segment })
40	}
41
42OtherName ::= SEQUENCE {
43	type-id			OBJECT IDENTIFIER,
44	value			[0] ANY
45	}
46
47EDIPartyName ::= SEQUENCE {
48	nameAssigner		[0] ANY OPTIONAL,
49	partyName		[1] ANY
50	}
51