• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.bouncycastle.asn1.nist;
2 
3 import org.bouncycastle.asn1.DERObjectIdentifier;
4 
5 public interface NISTObjectIdentifiers
6 {
7     //
8     // NIST
9     //     iso/itu(2) joint-assign(16) us(840) organization(1) gov(101) csor(3)
10 
11     //
12     // nistalgorithms(4)
13     //
14     static final String                 nistAlgorithm          = "2.16.840.1.101.3.4";
15 
16     static final DERObjectIdentifier    id_sha256               = new DERObjectIdentifier(nistAlgorithm + ".2.1");
17     static final DERObjectIdentifier    id_sha384               = new DERObjectIdentifier(nistAlgorithm + ".2.2");
18     static final DERObjectIdentifier    id_sha512               = new DERObjectIdentifier(nistAlgorithm + ".2.3");
19     static final DERObjectIdentifier    id_sha224               = new DERObjectIdentifier(nistAlgorithm + ".2.4");
20 
21     static final String                 aes                     = nistAlgorithm + ".1";
22 
23     static final DERObjectIdentifier    id_aes128_ECB           = new DERObjectIdentifier(aes + ".1");
24     static final DERObjectIdentifier    id_aes128_CBC           = new DERObjectIdentifier(aes + ".2");
25     static final DERObjectIdentifier    id_aes128_OFB           = new DERObjectIdentifier(aes + ".3");
26     static final DERObjectIdentifier    id_aes128_CFB           = new DERObjectIdentifier(aes + ".4");
27     static final DERObjectIdentifier    id_aes128_wrap          = new DERObjectIdentifier(aes + ".5");
28     static final DERObjectIdentifier    id_aes128_GCM           = new DERObjectIdentifier(aes + ".6");
29     static final DERObjectIdentifier    id_aes128_CCM           = new DERObjectIdentifier(aes + ".7");
30 
31     static final DERObjectIdentifier    id_aes192_ECB           = new DERObjectIdentifier(aes + ".21");
32     static final DERObjectIdentifier    id_aes192_CBC           = new DERObjectIdentifier(aes + ".22");
33     static final DERObjectIdentifier    id_aes192_OFB           = new DERObjectIdentifier(aes + ".23");
34     static final DERObjectIdentifier    id_aes192_CFB           = new DERObjectIdentifier(aes + ".24");
35     static final DERObjectIdentifier    id_aes192_wrap          = new DERObjectIdentifier(aes + ".25");
36     static final DERObjectIdentifier    id_aes192_GCM           = new DERObjectIdentifier(aes + ".26");
37     static final DERObjectIdentifier    id_aes192_CCM           = new DERObjectIdentifier(aes + ".27");
38 
39     static final DERObjectIdentifier    id_aes256_ECB           = new DERObjectIdentifier(aes + ".41");
40     static final DERObjectIdentifier    id_aes256_CBC           = new DERObjectIdentifier(aes + ".42");
41     static final DERObjectIdentifier    id_aes256_OFB           = new DERObjectIdentifier(aes + ".43");
42     static final DERObjectIdentifier    id_aes256_CFB           = new DERObjectIdentifier(aes + ".44");
43     static final DERObjectIdentifier    id_aes256_wrap          = new DERObjectIdentifier(aes + ".45");
44     static final DERObjectIdentifier    id_aes256_GCM           = new DERObjectIdentifier(aes + ".46");
45     static final DERObjectIdentifier    id_aes256_CCM           = new DERObjectIdentifier(aes + ".47");
46 
47     //
48     // signatures
49     //
50     static final DERObjectIdentifier    id_dsa_with_sha2        = new DERObjectIdentifier(nistAlgorithm + ".3");
51 
52     static final DERObjectIdentifier    dsa_with_sha224         = new DERObjectIdentifier(id_dsa_with_sha2 + ".1");
53     static final DERObjectIdentifier    dsa_with_sha256         = new DERObjectIdentifier(id_dsa_with_sha2 + ".2");
54     static final DERObjectIdentifier    dsa_with_sha384         = new DERObjectIdentifier(id_dsa_with_sha2 + ".3");
55     static final DERObjectIdentifier    dsa_with_sha512         = new DERObjectIdentifier(id_dsa_with_sha2 + ".4");
56 }
57