001: package org.bouncycastle.asn1.x9;
002:
003: import org.bouncycastle.asn1.DERObjectIdentifier;
004:
005: public interface X9ObjectIdentifiers {
006: //
007: // X9.62
008: //
009: // ansi-X9-62 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
010: // us(840) ansi-x962(10045) }
011: //
012: static final String ansi_X9_62 = "1.2.840.10045";
013: static final String id_fieldType = ansi_X9_62 + ".1";
014:
015: static final DERObjectIdentifier prime_field = new DERObjectIdentifier(
016: id_fieldType + ".1");
017:
018: static final DERObjectIdentifier characteristic_two_field = new DERObjectIdentifier(
019: id_fieldType + ".2");
020:
021: static final DERObjectIdentifier gnBasis = new DERObjectIdentifier(
022: id_fieldType + ".2.3.1");
023:
024: static final DERObjectIdentifier tpBasis = new DERObjectIdentifier(
025: id_fieldType + ".2.3.2");
026:
027: static final DERObjectIdentifier ppBasis = new DERObjectIdentifier(
028: id_fieldType + ".2.3.3");
029:
030: static final String id_ecSigType = ansi_X9_62 + ".4";
031:
032: static final DERObjectIdentifier ecdsa_with_SHA1 = new DERObjectIdentifier(
033: id_ecSigType + ".1");
034:
035: static final String id_publicKeyType = ansi_X9_62 + ".2";
036:
037: static final DERObjectIdentifier id_ecPublicKey = new DERObjectIdentifier(
038: id_publicKeyType + ".1");
039:
040: static final DERObjectIdentifier ecdsa_with_SHA2 = new DERObjectIdentifier(
041: id_ecSigType + ".3");
042:
043: static final DERObjectIdentifier ecdsa_with_SHA224 = new DERObjectIdentifier(
044: ecdsa_with_SHA2 + ".1");
045:
046: static final DERObjectIdentifier ecdsa_with_SHA256 = new DERObjectIdentifier(
047: ecdsa_with_SHA2 + ".2");
048:
049: static final DERObjectIdentifier ecdsa_with_SHA384 = new DERObjectIdentifier(
050: ecdsa_with_SHA2 + ".3");
051:
052: static final DERObjectIdentifier ecdsa_with_SHA512 = new DERObjectIdentifier(
053: ecdsa_with_SHA2 + ".4");
054:
055: //
056: // named curves
057: //
058: static final String ellipticCurve = ansi_X9_62 + ".3";
059:
060: //
061: // Two Curves
062: //
063: static final String cTwoCurve = ellipticCurve + ".0";
064:
065: static final DERObjectIdentifier c2pnb163v1 = new DERObjectIdentifier(
066: cTwoCurve + ".1");
067: static final DERObjectIdentifier c2pnb163v2 = new DERObjectIdentifier(
068: cTwoCurve + ".2");
069: static final DERObjectIdentifier c2pnb163v3 = new DERObjectIdentifier(
070: cTwoCurve + ".3");
071: static final DERObjectIdentifier c2pnb176w1 = new DERObjectIdentifier(
072: cTwoCurve + ".4");
073: static final DERObjectIdentifier c2tnb191v1 = new DERObjectIdentifier(
074: cTwoCurve + ".5");
075: static final DERObjectIdentifier c2tnb191v2 = new DERObjectIdentifier(
076: cTwoCurve + ".6");
077: static final DERObjectIdentifier c2tnb191v3 = new DERObjectIdentifier(
078: cTwoCurve + ".7");
079: static final DERObjectIdentifier c2onb191v4 = new DERObjectIdentifier(
080: cTwoCurve + ".8");
081: static final DERObjectIdentifier c2onb191v5 = new DERObjectIdentifier(
082: cTwoCurve + ".9");
083: static final DERObjectIdentifier c2pnb208w1 = new DERObjectIdentifier(
084: cTwoCurve + ".10");
085: static final DERObjectIdentifier c2tnb239v1 = new DERObjectIdentifier(
086: cTwoCurve + ".11");
087: static final DERObjectIdentifier c2tnb239v2 = new DERObjectIdentifier(
088: cTwoCurve + ".12");
089: static final DERObjectIdentifier c2tnb239v3 = new DERObjectIdentifier(
090: cTwoCurve + ".13");
091: static final DERObjectIdentifier c2onb239v4 = new DERObjectIdentifier(
092: cTwoCurve + ".14");
093: static final DERObjectIdentifier c2onb239v5 = new DERObjectIdentifier(
094: cTwoCurve + ".15");
095: static final DERObjectIdentifier c2pnb272w1 = new DERObjectIdentifier(
096: cTwoCurve + ".16");
097: static final DERObjectIdentifier c2pnb304w1 = new DERObjectIdentifier(
098: cTwoCurve + ".17");
099: static final DERObjectIdentifier c2tnb359v1 = new DERObjectIdentifier(
100: cTwoCurve + ".18");
101: static final DERObjectIdentifier c2pnb368w1 = new DERObjectIdentifier(
102: cTwoCurve + ".19");
103: static final DERObjectIdentifier c2tnb431r1 = new DERObjectIdentifier(
104: cTwoCurve + ".20");
105:
106: //
107: // Prime
108: //
109: static final String primeCurve = ellipticCurve + ".1";
110:
111: static final DERObjectIdentifier prime192v1 = new DERObjectIdentifier(
112: primeCurve + ".1");
113: static final DERObjectIdentifier prime192v2 = new DERObjectIdentifier(
114: primeCurve + ".2");
115: static final DERObjectIdentifier prime192v3 = new DERObjectIdentifier(
116: primeCurve + ".3");
117: static final DERObjectIdentifier prime239v1 = new DERObjectIdentifier(
118: primeCurve + ".4");
119: static final DERObjectIdentifier prime239v2 = new DERObjectIdentifier(
120: primeCurve + ".5");
121: static final DERObjectIdentifier prime239v3 = new DERObjectIdentifier(
122: primeCurve + ".6");
123: static final DERObjectIdentifier prime256v1 = new DERObjectIdentifier(
124: primeCurve + ".7");
125:
126: //
127: // Diffie-Hellman
128: //
129: // dhpublicnumber OBJECT IDENTIFIER ::= { iso(1) member-body(2)
130: // us(840) ansi-x942(10046) number-type(2) 1 }
131: //
132: static final DERObjectIdentifier dhpublicnumber = new DERObjectIdentifier(
133: "1.2.840.10046.2.1");
134:
135: //
136: // DSA
137: //
138: // dsapublicnumber OBJECT IDENTIFIER ::= { iso(1) member-body(2)
139: // us(840) ansi-x957(10040) number-type(4) 1 }
140: static final DERObjectIdentifier id_dsa = new DERObjectIdentifier(
141: "1.2.840.10040.4.1");
142:
143: /**
144: * id-dsa-with-sha1 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
145: * us(840) x9-57 (10040) x9cm(4) 3 }
146: */
147: public static final DERObjectIdentifier id_dsa_with_sha1 = new DERObjectIdentifier(
148: "1.2.840.10040.4.3");
149:
150: /**
151: * X9.63
152: */
153: public static final DERObjectIdentifier x9_63_scheme = new DERObjectIdentifier(
154: "1.3.133.16.840.63.0");
155: public static final DERObjectIdentifier dhSinglePass_stdDH_sha1kdf_scheme = new DERObjectIdentifier(
156: x9_63_scheme + ".2");
157: public static final DERObjectIdentifier dhSinglePass_cofactorDH_sha1kdf_scheme = new DERObjectIdentifier(
158: x9_63_scheme + ".3");
159: public static final DERObjectIdentifier mqvSinglePass_sha1kdf_scheme = new DERObjectIdentifier(
160: x9_63_scheme + ".16");
161:
162: /**
163: * X9.42
164: */
165: public static final DERObjectIdentifier x9_42_schemes = new DERObjectIdentifier(
166: "1.2.840.10046.3");
167: public static final DERObjectIdentifier dhStatic = new DERObjectIdentifier(
168: x9_42_schemes + ".1");
169: public static final DERObjectIdentifier dhEphem = new DERObjectIdentifier(
170: x9_42_schemes + ".2");
171: public static final DERObjectIdentifier dhOneFlow = new DERObjectIdentifier(
172: x9_42_schemes + ".3");
173: public static final DERObjectIdentifier dhHybrid1 = new DERObjectIdentifier(
174: x9_42_schemes + ".4");
175: public static final DERObjectIdentifier dhHybrid2 = new DERObjectIdentifier(
176: x9_42_schemes + ".5");
177: public static final DERObjectIdentifier dhHybridOneFlow = new DERObjectIdentifier(
178: x9_42_schemes + ".6");
179: public static final DERObjectIdentifier mqv2 = new DERObjectIdentifier(
180: x9_42_schemes + ".7");
181: public static final DERObjectIdentifier mqv1 = new DERObjectIdentifier(
182: x9_42_schemes + ".8");
183: }
|