Loading...
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}
1--
2-- This is the unencrypted variant
3--
4PrivateKeyInfo ::= SEQUENCE {
5 version Version,
6 privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
7 privateKey PrivateKey,
8 attributes [0] IMPLICIT Attributes OPTIONAL
9}
10
11Version ::= INTEGER ({ pkcs8_note_version })
12
13PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier ({ pkcs8_note_algo })
14
15PrivateKey ::= OCTET STRING ({ pkcs8_note_key })
16
17Attributes ::= SET OF Attribute
18
19Attribute ::= ANY
20
21AlgorithmIdentifier ::= SEQUENCE {
22 algorithm OBJECT IDENTIFIER ({ pkcs8_note_OID }),
23 parameters ANY OPTIONAL
24}