~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/ssh/src/PKCS-1.asn1

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
PKCS-1 {
 
2
    iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1)
 
3
    modules(0) pkcs-1(1)
 
4
}
 
5
 
 
6
-- $Revision: 1.1 $
 
7
 
 
8
DEFINITIONS EXPLICIT TAGS ::=
 
9
 
 
10
BEGIN
 
11
 
 
12
IMPORTS id-sha256, id-sha384, id-sha512
 
13
    FROM NIST-SHA2 {
 
14
        joint-iso-itu-t(2) country(16) us(840) organization(1)
 
15
        gov(101) csor(3) nistalgorithm(4) modules(0) sha2(1)
 
16
    };
 
17
 
 
18
pkcs-1    OBJECT IDENTIFIER ::= {
 
19
    iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 1
 
20
}
 
21
 
 
22
rsaEncryption    OBJECT IDENTIFIER ::= { pkcs-1 1 }
 
23
 
 
24
id-RSAES-OAEP    OBJECT IDENTIFIER ::= { pkcs-1 7 }
 
25
 
 
26
id-pSpecified    OBJECT IDENTIFIER ::= { pkcs-1 9 }
 
27
 
 
28
id-RSASSA-PSS    OBJECT IDENTIFIER ::= { pkcs-1 10 }
 
29
 
 
30
md2WithRSAEncryption       OBJECT IDENTIFIER ::= { pkcs-1 2 }
 
31
md5WithRSAEncryption       OBJECT IDENTIFIER ::= { pkcs-1 4 }
 
32
sha1WithRSAEncryption      OBJECT IDENTIFIER ::= { pkcs-1 5 }
 
33
sha256WithRSAEncryption    OBJECT IDENTIFIER ::= { pkcs-1 11 }
 
34
sha384WithRSAEncryption    OBJECT IDENTIFIER ::= { pkcs-1 12 }
 
35
sha512WithRSAEncryption    OBJECT IDENTIFIER ::= { pkcs-1 13 }
 
36
 
 
37
id-sha1    OBJECT IDENTIFIER ::= {
 
38
    iso(1) identified-organization(3) oiw(14) secsig(3)
 
39
    algorithms(2) 26
 
40
}
 
41
 
 
42
id-md2 OBJECT IDENTIFIER ::= {
 
43
    iso(1) member-body(2) us(840) rsadsi(113549) digestAlgorithm(2) 2
 
44
}
 
45
 
 
46
id-md5 OBJECT IDENTIFIER ::= {
 
47
    iso(1) member-body(2) us(840) rsadsi(113549) digestAlgorithm(2) 5
 
48
}
 
49
 
 
50
id-mgf1    OBJECT IDENTIFIER ::= { pkcs-1 8 }
 
51
 
 
52
 
 
53
RSAPublicKey ::= SEQUENCE {
 
54
    modulus           INTEGER,  -- n
 
55
    publicExponent    INTEGER   -- e
 
56
}
 
57
 
 
58
RSAPrivateKey ::= SEQUENCE {
 
59
    version           Version,
 
60
    modulus           INTEGER,  -- n
 
61
    publicExponent    INTEGER,  -- e
 
62
    privateExponent   INTEGER,  -- d
 
63
    prime1            INTEGER,  -- p
 
64
    prime2            INTEGER,  -- q
 
65
    exponent1         INTEGER,  -- d mod (p-1)
 
66
    exponent2         INTEGER,  -- d mod (q-1)
 
67
    coefficient       INTEGER,  -- (inverse of q) mod p
 
68
    otherPrimeInfos   OtherPrimeInfos OPTIONAL
 
69
}
 
70
 
 
71
Version ::= INTEGER { two-prime(0), multi(1) }
 
72
    (CONSTRAINED BY {
 
73
        -- version must be multi if otherPrimeInfos present --
 
74
    })
 
75
 
 
76
OtherPrimeInfos ::= SEQUENCE SIZE(1..MAX) OF OtherPrimeInfo
 
77
 
 
78
OtherPrimeInfo ::= SEQUENCE {
 
79
    prime             INTEGER,  -- ri
 
80
    exponent          INTEGER,  -- di
 
81
    coefficient       INTEGER   -- ti
 
82
}
 
83
 
 
84
Algorithm ::= SEQUENCE {
 
85
        algorithm OBJECT IDENTIFIER,
 
86
        parameters ANY DEFINED BY algorithm OPTIONAL
 
87
}
 
88
 
 
89
AlgorithmNull ::= SEQUENCE {
 
90
        algorithm OBJECT IDENTIFIER,
 
91
        parameters NULL
 
92
}
 
93
 
 
94
 
 
95
RSASSA-PSS-params ::= SEQUENCE {
 
96
    hashAlgorithm      [0] Algorithm,     --  DEFAULT sha1,
 
97
    maskGenAlgorithm   [1] Algorithm,     --  DEFAULT mgf1SHA1,
 
98
    saltLength         [2] INTEGER            DEFAULT 20,
 
99
    trailerField       [3] TrailerField       DEFAULT trailerFieldBC
 
100
}
 
101
 
 
102
TrailerField ::= INTEGER { trailerFieldBC(1) }
 
103
 
 
104
DigestInfo ::= SEQUENCE {
 
105
        digestAlgorithm Algorithm,
 
106
        digest OCTET STRING
 
107
}
 
108
 
 
109
DigestInfoNull ::= SEQUENCE {
 
110
        digestAlgorithm AlgorithmNull,
 
111
        digest OCTET STRING
 
112
}
 
113
 
 
114
 
 
115
END  -- PKCS1Definitions
 
116