1 -- SPDX-License-Identifier: BSD-3-Clause
3 -- Copyright (C) 2010 IETF Trust and the persons identified as authors
6 -- https://www.rfc-editor.org/rfc/rfc5958#section-2
8 -- This is the unencrypted variant
10 PrivateKeyInfo ::= SEQUENCE {
12 privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
13 privateKey PrivateKey,
14 attributes [0] IMPLICIT Attributes OPTIONAL
17 Version ::= INTEGER ({ pkcs8_note_version })
19 PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier ({ pkcs8_note_algo })
21 PrivateKey ::= OCTET STRING ({ pkcs8_note_key })
23 Attributes ::= SET OF Attribute
27 AlgorithmIdentifier ::= SEQUENCE {
28 algorithm OBJECT IDENTIFIER ({ pkcs8_note_OID }),
29 parameters ANY OPTIONAL