• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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     // BEGIN android-removed
14     // Dropping MD2
15     // static final DERObjectIdentifier    md2WithRSAEncryption      = new DERObjectIdentifier(pkcs_1 + ".2");
16     // END android-removed
17     static final DERObjectIdentifier    md4WithRSAEncryption      = new DERObjectIdentifier(pkcs_1 + ".3");
18     static final DERObjectIdentifier    md5WithRSAEncryption      = new DERObjectIdentifier(pkcs_1 + ".4");
19     static final DERObjectIdentifier    sha1WithRSAEncryption     = new DERObjectIdentifier(pkcs_1 + ".5");
20     static final DERObjectIdentifier    srsaOAEPEncryptionSET     = new DERObjectIdentifier(pkcs_1 + ".6");
21     static final DERObjectIdentifier    id_RSAES_OAEP             = new DERObjectIdentifier(pkcs_1 + ".7");
22     static final DERObjectIdentifier    id_mgf1                   = new DERObjectIdentifier(pkcs_1 + ".8");
23     static final DERObjectIdentifier    id_pSpecified             = new DERObjectIdentifier(pkcs_1 + ".9");
24     static final DERObjectIdentifier    id_RSASSA_PSS             = new DERObjectIdentifier(pkcs_1 + ".10");
25     static final DERObjectIdentifier    sha256WithRSAEncryption   = new DERObjectIdentifier(pkcs_1 + ".11");
26     static final DERObjectIdentifier    sha384WithRSAEncryption   = new DERObjectIdentifier(pkcs_1 + ".12");
27     static final DERObjectIdentifier    sha512WithRSAEncryption   = new DERObjectIdentifier(pkcs_1 + ".13");
28     static final DERObjectIdentifier    sha224WithRSAEncryption   = new DERObjectIdentifier(pkcs_1 + ".14");
29 
30     //
31     // pkcs-3 OBJECT IDENTIFIER ::= {
32     //       iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 3 }
33     //
34     static final String                 pkcs_3                  = "1.2.840.113549.1.3";
35     static final DERObjectIdentifier    dhKeyAgreement          = new DERObjectIdentifier(pkcs_3 + ".1");
36 
37     //
38     // pkcs-5 OBJECT IDENTIFIER ::= {
39     //       iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 5 }
40     //
41     static final String                 pkcs_5                  = "1.2.840.113549.1.5";
42 
43     static final DERObjectIdentifier    pbeWithMD2AndDES_CBC    = new DERObjectIdentifier(pkcs_5 + ".1");
44     static final DERObjectIdentifier    pbeWithMD2AndRC2_CBC    = new DERObjectIdentifier(pkcs_5 + ".4");
45     static final DERObjectIdentifier    pbeWithMD5AndDES_CBC    = new DERObjectIdentifier(pkcs_5 + ".3");
46     static final DERObjectIdentifier    pbeWithMD5AndRC2_CBC    = new DERObjectIdentifier(pkcs_5 + ".6");
47     static final DERObjectIdentifier    pbeWithSHA1AndDES_CBC   = new DERObjectIdentifier(pkcs_5 + ".10");
48     static final DERObjectIdentifier    pbeWithSHA1AndRC2_CBC   = new DERObjectIdentifier(pkcs_5 + ".11");
49 
50     static final DERObjectIdentifier    id_PBES2                = new DERObjectIdentifier(pkcs_5 + ".13");
51 
52     static final DERObjectIdentifier    id_PBKDF2               = new DERObjectIdentifier(pkcs_5 + ".12");
53 
54     //
55     // encryptionAlgorithm OBJECT IDENTIFIER ::= {
56     //       iso(1) member-body(2) us(840) rsadsi(113549) 3 }
57     //
58     static final String                 encryptionAlgorithm     = "1.2.840.113549.3";
59 
60     static final DERObjectIdentifier    des_EDE3_CBC            = new DERObjectIdentifier(encryptionAlgorithm + ".7");
61     static final DERObjectIdentifier    RC2_CBC                 = new DERObjectIdentifier(encryptionAlgorithm + ".2");
62 
63     //
64     // object identifiers for digests
65     //
66     static final String                 digestAlgorithm     = "1.2.840.113549.2";
67     //
68     // md2 OBJECT IDENTIFIER ::=
69     //      {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 2}
70     //
71     // BEGIN android-removed
72     // Dropping MD2
73     // static final DERObjectIdentifier    md2                     = new DERObjectIdentifier(digestAlgorithm + ".2");
74     // END android-removed
75 
76     //
77     // md4 OBJECT IDENTIFIER ::=
78     //      {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 4}
79     //
80     static final DERObjectIdentifier    md4 = new DERObjectIdentifier(digestAlgorithm + ".4");
81 
82     //
83     // md5 OBJECT IDENTIFIER ::=
84     //      {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 5}
85     //
86     static final DERObjectIdentifier    md5                     = new DERObjectIdentifier(digestAlgorithm + ".5");
87 
88     static final DERObjectIdentifier    id_hmacWithSHA1         = new DERObjectIdentifier(digestAlgorithm + ".7");
89     static final DERObjectIdentifier    id_hmacWithSHA224       = new DERObjectIdentifier(digestAlgorithm + ".8");
90     static final DERObjectIdentifier    id_hmacWithSHA256       = new DERObjectIdentifier(digestAlgorithm + ".9");
91     static final DERObjectIdentifier    id_hmacWithSHA384       = new DERObjectIdentifier(digestAlgorithm + ".10");
92     static final DERObjectIdentifier    id_hmacWithSHA512       = new DERObjectIdentifier(digestAlgorithm + ".11");
93 
94     //
95     // pkcs-7 OBJECT IDENTIFIER ::= {
96     //       iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 7 }
97     //
98     static final String                 pkcs_7                  = "1.2.840.113549.1.7";
99     static final DERObjectIdentifier    data                    = new DERObjectIdentifier(pkcs_7 + ".1");
100     static final DERObjectIdentifier    signedData              = new DERObjectIdentifier(pkcs_7 + ".2");
101     static final DERObjectIdentifier    envelopedData           = new DERObjectIdentifier(pkcs_7 + ".3");
102     static final DERObjectIdentifier    signedAndEnvelopedData  = new DERObjectIdentifier(pkcs_7 + ".4");
103     static final DERObjectIdentifier    digestedData            = new DERObjectIdentifier(pkcs_7 + ".5");
104     static final DERObjectIdentifier    encryptedData           = new DERObjectIdentifier(pkcs_7 + ".6");
105 
106     //
107     // pkcs-9 OBJECT IDENTIFIER ::= {
108     //       iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 9 }
109     //
110     static final String                 pkcs_9                  = "1.2.840.113549.1.9";
111 
112     static final DERObjectIdentifier    pkcs_9_at_emailAddress  = new DERObjectIdentifier(pkcs_9 + ".1");
113     static final DERObjectIdentifier    pkcs_9_at_unstructuredName = new DERObjectIdentifier(pkcs_9 + ".2");
114     static final DERObjectIdentifier    pkcs_9_at_contentType = new DERObjectIdentifier(pkcs_9 + ".3");
115     static final DERObjectIdentifier    pkcs_9_at_messageDigest = new DERObjectIdentifier(pkcs_9 + ".4");
116     static final DERObjectIdentifier    pkcs_9_at_signingTime = new DERObjectIdentifier(pkcs_9 + ".5");
117     static final DERObjectIdentifier    pkcs_9_at_counterSignature = new DERObjectIdentifier(pkcs_9 + ".6");
118     static final DERObjectIdentifier    pkcs_9_at_challengePassword = new DERObjectIdentifier(pkcs_9 + ".7");
119     static final DERObjectIdentifier    pkcs_9_at_unstructuredAddress = new DERObjectIdentifier(pkcs_9 + ".8");
120     static final DERObjectIdentifier    pkcs_9_at_extendedCertificateAttributes = new DERObjectIdentifier(pkcs_9 + ".9");
121 
122     static final DERObjectIdentifier    pkcs_9_at_signingDescription = new DERObjectIdentifier(pkcs_9 + ".13");
123     static final DERObjectIdentifier    pkcs_9_at_extensionRequest = new DERObjectIdentifier(pkcs_9 + ".14");
124     static final DERObjectIdentifier    pkcs_9_at_smimeCapabilities = new DERObjectIdentifier(pkcs_9 + ".15");
125 
126     static final DERObjectIdentifier    pkcs_9_at_friendlyName  = new DERObjectIdentifier(pkcs_9 + ".20");
127     static final DERObjectIdentifier    pkcs_9_at_localKeyId    = new DERObjectIdentifier(pkcs_9 + ".21");
128 
129     /** @deprecated use x509Certificate instead */
130     static final DERObjectIdentifier    x509certType            = new DERObjectIdentifier(pkcs_9 + ".22.1");
131 
132     static final String                 certTypes               = pkcs_9 + ".22";
133     static final DERObjectIdentifier    x509Certificate         = new DERObjectIdentifier(certTypes + ".1");
134     static final DERObjectIdentifier    sdsiCertificate         = new DERObjectIdentifier(certTypes + ".2");
135 
136     static final String                 crlTypes                = pkcs_9 + ".23";
137     static final DERObjectIdentifier    x509Crl                 = new DERObjectIdentifier(crlTypes + ".1");
138 
139     static final DERObjectIdentifier    id_alg_PWRI_KEK    = new DERObjectIdentifier(pkcs_9 + ".16.3.9");
140 
141     //
142     // SMIME capability sub oids.
143     //
144     static final DERObjectIdentifier    preferSignedData        = new DERObjectIdentifier(pkcs_9 + ".15.1");
145     static final DERObjectIdentifier    canNotDecryptAny        = new DERObjectIdentifier(pkcs_9 + ".15.2");
146     static final DERObjectIdentifier    sMIMECapabilitiesVersions = new DERObjectIdentifier(pkcs_9 + ".15.3");
147 
148     //
149     // id-ct OBJECT IDENTIFIER ::= {iso(1) member-body(2) usa(840)
150     // rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) ct(1)}
151     //
152     static String id_ct = "1.2.840.113549.1.9.16.1";
153 
154     static final DERObjectIdentifier    id_ct_authData          = new DERObjectIdentifier(id_ct + ".2");
155     static final DERObjectIdentifier    id_ct_TSTInfo           = new DERObjectIdentifier(id_ct + ".4");
156     static final DERObjectIdentifier    id_ct_compressedData    = new DERObjectIdentifier(id_ct + ".9");
157     static final DERObjectIdentifier    id_ct_authEnvelopedData = new DERObjectIdentifier(id_ct + ".23");
158 
159     //
160     // id-cti OBJECT IDENTIFIER ::= {iso(1) member-body(2) usa(840)
161     // rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6)}
162     //
163     static String id_cti = "1.2.840.113549.1.9.16.6";
164 
165     static final DERObjectIdentifier    id_cti_ets_proofOfOrigin  = new DERObjectIdentifier(id_cti + ".1");
166     static final DERObjectIdentifier    id_cti_ets_proofOfReceipt = new DERObjectIdentifier(id_cti + ".2");
167     static final DERObjectIdentifier    id_cti_ets_proofOfDelivery = new DERObjectIdentifier(id_cti + ".3");
168     static final DERObjectIdentifier    id_cti_ets_proofOfSender = new DERObjectIdentifier(id_cti + ".4");
169     static final DERObjectIdentifier    id_cti_ets_proofOfApproval = new DERObjectIdentifier(id_cti + ".5");
170     static final DERObjectIdentifier    id_cti_ets_proofOfCreation = new DERObjectIdentifier(id_cti + ".6");
171 
172     //
173     // id-aa OBJECT IDENTIFIER ::= {iso(1) member-body(2) usa(840)
174     // rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) attributes(2)}
175     //
176     static String id_aa = "1.2.840.113549.1.9.16.2";
177 
178     static final DERObjectIdentifier id_aa_receiptRequest = new DERObjectIdentifier(id_aa + ".1");
179 
180     static final DERObjectIdentifier id_aa_contentHint = new DERObjectIdentifier(id_aa + ".4"); // See RFC 2634
181     /*
182      * id-aa-encrypKeyPref OBJECT IDENTIFIER ::= {id-aa 11}
183      *
184      */
185     static final DERObjectIdentifier id_aa_encrypKeyPref = new DERObjectIdentifier(id_aa + ".11");
186     static final DERObjectIdentifier id_aa_signingCertificate = new DERObjectIdentifier(id_aa + ".12");
187     static final DERObjectIdentifier id_aa_signingCertificateV2 = new DERObjectIdentifier(id_aa + ".47");
188 
189     static final DERObjectIdentifier id_aa_contentIdentifier = new DERObjectIdentifier(id_aa + ".7"); // See RFC 2634
190 
191     /*
192      * RFC 3126
193      */
194     static final DERObjectIdentifier id_aa_signatureTimeStampToken = new DERObjectIdentifier(id_aa + ".14");
195 
196     static final DERObjectIdentifier id_aa_ets_sigPolicyId = new DERObjectIdentifier(id_aa + ".15");
197     static final DERObjectIdentifier id_aa_ets_commitmentType = new DERObjectIdentifier(id_aa + ".16");
198     static final DERObjectIdentifier id_aa_ets_signerLocation = new DERObjectIdentifier(id_aa + ".17");
199     static final DERObjectIdentifier id_aa_ets_signerAttr = new DERObjectIdentifier(id_aa + ".18");
200     static final DERObjectIdentifier id_aa_ets_otherSigCert = new DERObjectIdentifier(id_aa + ".19");
201     static final DERObjectIdentifier id_aa_ets_contentTimestamp = new DERObjectIdentifier(id_aa + ".20");
202     static final DERObjectIdentifier id_aa_ets_certificateRefs = new DERObjectIdentifier(id_aa + ".21");
203     static final DERObjectIdentifier id_aa_ets_revocationRefs = new DERObjectIdentifier(id_aa + ".22");
204     static final DERObjectIdentifier id_aa_ets_certValues = new DERObjectIdentifier(id_aa + ".23");
205     static final DERObjectIdentifier id_aa_ets_revocationValues = new DERObjectIdentifier(id_aa + ".24");
206     static final DERObjectIdentifier id_aa_ets_escTimeStamp = new DERObjectIdentifier(id_aa + ".25");
207     static final DERObjectIdentifier id_aa_ets_certCRLTimestamp = new DERObjectIdentifier(id_aa + ".26");
208     static final DERObjectIdentifier id_aa_ets_archiveTimestamp = new DERObjectIdentifier(id_aa + ".27");
209 
210     /** @deprecated use id_aa_ets_sigPolicyId instead */
211     static final DERObjectIdentifier id_aa_sigPolicyId = id_aa_ets_sigPolicyId;
212     /** @deprecated use id_aa_ets_commitmentType instead */
213     static final DERObjectIdentifier id_aa_commitmentType = id_aa_ets_commitmentType;
214     /** @deprecated use id_aa_ets_signerLocation instead */
215     static final DERObjectIdentifier id_aa_signerLocation = id_aa_ets_signerLocation;
216     /** @deprecated use id_aa_ets_otherSigCert instead */
217     static final DERObjectIdentifier id_aa_otherSigCert = id_aa_ets_otherSigCert;
218 
219     //
220     // id-spq OBJECT IDENTIFIER ::= {iso(1) member-body(2) usa(840)
221     // rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-spq(5)}
222     //
223     final String id_spq = "1.2.840.113549.1.9.16.5";
224 
225     static final DERObjectIdentifier id_spq_ets_uri = new DERObjectIdentifier(id_spq + ".1");
226     static final DERObjectIdentifier id_spq_ets_unotice = new DERObjectIdentifier(id_spq + ".2");
227 
228     //
229     // pkcs-12 OBJECT IDENTIFIER ::= {
230     //       iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 12 }
231     //
232     static final String                 pkcs_12                  = "1.2.840.113549.1.12";
233     static final String                 bagtypes                 = pkcs_12 + ".10.1";
234 
235     static final DERObjectIdentifier    keyBag                  = new DERObjectIdentifier(bagtypes + ".1");
236     static final DERObjectIdentifier    pkcs8ShroudedKeyBag     = new DERObjectIdentifier(bagtypes + ".2");
237     static final DERObjectIdentifier    certBag                 = new DERObjectIdentifier(bagtypes + ".3");
238     static final DERObjectIdentifier    crlBag                  = new DERObjectIdentifier(bagtypes + ".4");
239     static final DERObjectIdentifier    secretBag               = new DERObjectIdentifier(bagtypes + ".5");
240     static final DERObjectIdentifier    safeContentsBag         = new DERObjectIdentifier(bagtypes + ".6");
241 
242     static final String pkcs_12PbeIds  = pkcs_12 + ".1";
243 
244     static final DERObjectIdentifier    pbeWithSHAAnd128BitRC4 = new DERObjectIdentifier(pkcs_12PbeIds + ".1");
245     static final DERObjectIdentifier    pbeWithSHAAnd40BitRC4  = new DERObjectIdentifier(pkcs_12PbeIds + ".2");
246     static final DERObjectIdentifier    pbeWithSHAAnd3_KeyTripleDES_CBC = new DERObjectIdentifier(pkcs_12PbeIds + ".3");
247     static final DERObjectIdentifier    pbeWithSHAAnd2_KeyTripleDES_CBC = new DERObjectIdentifier(pkcs_12PbeIds + ".4");
248     static final DERObjectIdentifier    pbeWithSHAAnd128BitRC2_CBC = new DERObjectIdentifier(pkcs_12PbeIds + ".5");
249     static final DERObjectIdentifier    pbewithSHAAnd40BitRC2_CBC = new DERObjectIdentifier(pkcs_12PbeIds + ".6");
250 
251     static final DERObjectIdentifier    id_alg_CMS3DESwrap = new DERObjectIdentifier("1.2.840.113549.1.9.16.3.6");
252     static final DERObjectIdentifier    id_alg_CMSRC2wrap = new DERObjectIdentifier("1.2.840.113549.1.9.16.3.7");
253 }
254 
255