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