911e727c708583f3283b401d74af42d94e93266e
[sfrench/samba-autobuild/.git] / source4 / heimdal / lib / asn1 / pkcs8.asn1
1 -- $Id: pkcs8.asn1 16060 2005-09-13 19:41:29Z lha $ --
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