2002/03/21 01:19:32
[org.ibex.core.git] / src / org / bouncycastle / asn1 / pkcs / PKCSObjectIdentifiers.java
1 package org.bouncycastle.asn1.pkcs;
2
3 import org.bouncycastle.asn1.DERObjectIdentifier;
4
5 public interface PKCSObjectIdentifiers
6 {
7     //
8     // pkcs-1 OBJECT IDENTIFIER ::= {
9     //       iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 1 }
10     //
11     static final String                 pkcs_1                  = "1.2.840.113549.1.1";
12     static final DERObjectIdentifier    rsaEncryption           = new DERObjectIdentifier(pkcs_1 + ".1");
13     static final DERObjectIdentifier    md2WithRSAEncryption    = new DERObjectIdentifier(pkcs_1 + ".2");
14     static final DERObjectIdentifier    md4WithRSAEncryption    = new DERObjectIdentifier(pkcs_1 + ".3");
15     static final DERObjectIdentifier    md5WithRSAEncryption    = new DERObjectIdentifier(pkcs_1 + ".4");
16     static final DERObjectIdentifier    sha1WithRSAEncryption   = new DERObjectIdentifier(pkcs_1 + ".5");
17     static final DERObjectIdentifier    srsaOAEPEncryptionSET   = new DERObjectIdentifier(pkcs_1 + ".6");
18
19     //
20     // pkcs-3 OBJECT IDENTIFIER ::= {
21     //       iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 3 }
22     //
23     static final String                 pkcs_3                  = "1.2.840.113549.1.3";
24     static final DERObjectIdentifier    dhKeyAgreement          = new DERObjectIdentifier(pkcs_3 + ".1");
25
26     //
27     // pkcs-5 OBJECT IDENTIFIER ::= {
28     //       iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 5 }
29     //
30     static final String                 pkcs_5                  = "1.2.840.113549.1.5";
31
32     static final DERObjectIdentifier    id_PBES2                = new DERObjectIdentifier(pkcs_5 + ".13");
33
34     static final DERObjectIdentifier    id_PBKDF2               = new DERObjectIdentifier(pkcs_5 + ".12");
35
36     //
37     // encryptionAlgorithm OBJECT IDENTIFIER ::= {
38     //       iso(1) member-body(2) us(840) rsadsi(113549) 3 }
39     //
40     static final String                 encryptionAlgorithm     = "1.2.840.113549.3";
41
42     static final DERObjectIdentifier    des_EDE3_CBC            = new DERObjectIdentifier(encryptionAlgorithm + ".7");
43     static final DERObjectIdentifier    RC2_CBC                 = new DERObjectIdentifier(encryptionAlgorithm + ".2");
44
45     //
46     // object identifiers for digests
47     //
48
49     //
50     // md2 OBJECT IDENTIFIER ::=
51     //      {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 2}
52     //
53     static final DERObjectIdentifier    md2                     = new DERObjectIdentifier("1.2.840.113549.2.2");
54
55     //
56     // md5 OBJECT IDENTIFIER ::=
57     //      {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 5}
58     //
59     static final DERObjectIdentifier    md5                     = new DERObjectIdentifier("1.2.840.113549.2.5");
60
61     //
62     // pkcs-7 OBJECT IDENTIFIER ::= {
63     //       iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 7 }
64     //
65     static final String                 pkcs_7                  = "1.2.840.113549.1.7";
66     static final DERObjectIdentifier    data                    = new DERObjectIdentifier(pkcs_7 + ".1");
67     static final DERObjectIdentifier    signedData              = new DERObjectIdentifier(pkcs_7 + ".2");
68     static final DERObjectIdentifier    envelopedData           = new DERObjectIdentifier(pkcs_7 + ".3");
69     static final DERObjectIdentifier    signedAndEnvelopedData  = new DERObjectIdentifier(pkcs_7 + ".4");
70     static final DERObjectIdentifier    digestedData            = new DERObjectIdentifier(pkcs_7 + ".5");
71     static final DERObjectIdentifier    encryptedData           = new DERObjectIdentifier(pkcs_7 + ".6");
72
73     //
74     // pkcs-9 OBJECT IDENTIFIER ::= {
75     //       iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 9 }
76     //
77     static final String                 pkcs_9                  = "1.2.840.113549.1.9";
78
79     static final DERObjectIdentifier    pkcs_9_at_emailAddress  = new DERObjectIdentifier(pkcs_9 + ".1");
80     static final DERObjectIdentifier    pkcs_9_at_friendlyName  = new DERObjectIdentifier(pkcs_9 + ".20");
81     static final DERObjectIdentifier    pkcs_9_at_localKeyId    = new DERObjectIdentifier(pkcs_9 + ".21");
82     static final DERObjectIdentifier    x509certType            = new DERObjectIdentifier(pkcs_9 + ".22.1");
83
84     //
85     // pkcs-12 OBJECT IDENTIFIER ::= {
86     //       iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 12 }
87     //
88     static final String                 pkcs_12                  = "1.2.840.113549.1.12";
89     static final String                 bagtypes                 = pkcs_12 + ".10.1";
90
91     static final DERObjectIdentifier    keyBag                  = new DERObjectIdentifier(bagtypes + ".1");
92     static final DERObjectIdentifier    pkcs8ShroudedKeyBag     = new DERObjectIdentifier(bagtypes + ".2");
93     static final DERObjectIdentifier    certBag                 = new DERObjectIdentifier(bagtypes + ".3");
94     static final DERObjectIdentifier    crlBag                  = new DERObjectIdentifier(bagtypes + ".4");
95     static final DERObjectIdentifier    secretBag               = new DERObjectIdentifier(bagtypes + ".5");
96     static final DERObjectIdentifier    safeContentsBag         = new DERObjectIdentifier(bagtypes + ".6");
97 }
98