xref: /linux/crypto/asymmetric_keys/pkcs8.asn1 (revision b8e85e6f3a09fc56b0ff574887798962ef8a8f80)
1-- SPDX-License-Identifier: BSD-3-Clause
2--
3-- Copyright (C) 2010 IETF Trust and the persons identified as authors
4-- of the code
5--
6-- https://www.rfc-editor.org/rfc/rfc5958#section-2
7--
8-- This is the unencrypted variant
9--
10PrivateKeyInfo ::= SEQUENCE {
11	version			Version,
12	privateKeyAlgorithm	PrivateKeyAlgorithmIdentifier,
13	privateKey		PrivateKey,
14	attributes		[0] IMPLICIT Attributes OPTIONAL
15}
16
17Version ::= INTEGER  ({ pkcs8_note_version })
18
19PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier ({ pkcs8_note_algo })
20
21PrivateKey ::= OCTET STRING ({ pkcs8_note_key })
22
23Attributes ::= SET OF Attribute
24
25Attribute ::= ANY
26
27AlgorithmIdentifier ::= SEQUENCE {
28	algorithm   OBJECT IDENTIFIER ({ pkcs8_note_OID }),
29	parameters  ANY OPTIONAL
30}
31