Corrected "old-style function definition".
[obnox/wireshark/wip.git] / asn1 / pkcs1 / PKCS1.asn
1 -- Module PKCS-1
2 -- Transcribed from RFC2313
3
4 PKCS-1 {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 1 } DEFINITIONS ::=
5 BEGIN
6
7 IMPORTS
8   AlgorithmIdentifier
9     FROM AuthenticationFramework {joint-iso-itu-t ds(5) module(1)
10       authenticationFramework(7) 4};
11
12 --  EXPORTS All 
13 --  The types and values defined in this module have been transcribed from RFC2313
14
15 RSAPublicKey ::= SEQUENCE {
16      modulus INTEGER, -- n
17      publicExponent INTEGER -- e 
18 }
19
20 RSAPrivateKey ::= SEQUENCE {
21      version Version,
22      modulus INTEGER, -- n
23      publicExponent INTEGER, -- e
24      privateExponent INTEGER, -- d
25      prime1 INTEGER, -- p
26      prime2 INTEGER, -- q
27      exponent1 INTEGER, -- d mod (p-1)
28      exponent2 INTEGER, -- d mod (q-1)
29      coefficient INTEGER -- (inverse of q) mod p 
30 }
31
32 Version ::= INTEGER
33
34 DigestInfo ::= SEQUENCE {
35      digestAlgorithm DigestAlgorithmIdentifier,
36      digest Digest 
37 }
38
39 DigestAlgorithmIdentifier ::= AlgorithmIdentifier
40
41 Digest ::= OCTET STRING
42
43
44 -- These algorithms have NULL parameters
45 -- md2 OBJECT IDENTIFIER ::= { iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 2 }
46 -- md4 OBJECT IDENTIFIER ::= { iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 4 } 
47 -- md5 OBJECT IDENTIFIER ::= { iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 5 }
48
49
50 -- pkcs-1 OBJECT IDENTIFIER ::= { iso(1) member-body(2) US(840) rsadsi(113549) pkcs(1) 1 }
51 -- rsaEncryption OBJECT IDENTIFIER ::= { pkcs-1 1 }
52 -- md2WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 2 }
53 -- md4WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 3 }
54 -- md5WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 4 }
55
56 END
57