GNU Linux-libre 6.9-gnu
[releases.git] / crypto / asymmetric_keys / pkcs8.asn1
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 --
10 PrivateKeyInfo ::= SEQUENCE {
11         version                 Version,
12         privateKeyAlgorithm     PrivateKeyAlgorithmIdentifier,
13         privateKey              PrivateKey,
14         attributes              [0] IMPLICIT Attributes OPTIONAL
15 }
16
17 Version ::= INTEGER  ({ pkcs8_note_version })
18
19 PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier ({ pkcs8_note_algo })
20
21 PrivateKey ::= OCTET STRING ({ pkcs8_note_key })
22
23 Attributes ::= SET OF Attribute
24
25 Attribute ::= ANY
26
27 AlgorithmIdentifier ::= SEQUENCE {
28         algorithm   OBJECT IDENTIFIER ({ pkcs8_note_OID }),
29         parameters  ANY OPTIONAL
30 }