31 lines · plain
1-- SPDX-License-Identifier: BSD-3-Clause2--3-- Copyright (C) 2010 IETF Trust and the persons identified as authors4-- of the code5--6-- https://www.rfc-editor.org/rfc/rfc5958#section-27--8-- This is the unencrypted variant9--10PrivateKeyInfo ::= SEQUENCE {11 version Version,12 privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,13 privateKey PrivateKey,14 attributes [0] IMPLICIT Attributes OPTIONAL15}16 17Version ::= INTEGER ({ pkcs8_note_version })18 19PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier ({ pkcs8_note_algo })20 21PrivateKey ::= OCTET STRING ({ pkcs8_note_key })22 23Attributes ::= SET OF Attribute24 25Attribute ::= ANY26 27AlgorithmIdentifier ::= SEQUENCE {28 algorithm OBJECT IDENTIFIER ({ pkcs8_note_OID }),29 parameters ANY OPTIONAL30}31