xref: /freebsd/crypto/heimdal/lib/asn1/pkcs8.asn1 (revision 6a068746777241722b2b32c5d0bc443a2a64d80b)
1-- $Id$ --
2
3PKCS8 DEFINITIONS ::=
4
5BEGIN
6
7IMPORTS	Attribute, AlgorithmIdentifier FROM rfc2459
8	heim_any, heim_any_set FROM heim;
9
10PKCS8PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier
11
12PKCS8PrivateKey ::= OCTET STRING
13
14PKCS8Attributes ::= SET OF Attribute
15
16PKCS8PrivateKeyInfo ::= SEQUENCE {
17  version INTEGER,
18  privateKeyAlgorithm PKCS8PrivateKeyAlgorithmIdentifier,
19  privateKey PKCS8PrivateKey,
20  attributes [0] IMPLICIT SET OF Attribute OPTIONAL
21}
22
23PKCS8EncryptedData ::= OCTET STRING
24
25PKCS8EncryptedPrivateKeyInfo ::= SEQUENCE {
26    encryptionAlgorithm AlgorithmIdentifier,
27    encryptedData PKCS8EncryptedData
28}
29
30END
31