1 package org.bouncycastle.asn1.x9; 2 3 import org.bouncycastle.asn1.DERObjectIdentifier; 4 5 public interface X9ObjectIdentifiers 6 { 7 // 8 // X9.62 9 // 10 // ansi-X9-62 OBJECT IDENTIFIER ::= { iso(1) member-body(2) 11 // us(840) ansi-x962(10045) } 12 // 13 static final String ansi_X9_62 = "1.2.840.10045"; 14 static final String id_fieldType = ansi_X9_62 + ".1"; 15 16 static final DERObjectIdentifier prime_field 17 = new DERObjectIdentifier(id_fieldType + ".1"); 18 19 static final DERObjectIdentifier characteristic_two_field 20 = new DERObjectIdentifier(id_fieldType + ".2"); 21 22 static final DERObjectIdentifier gnBasis 23 = new DERObjectIdentifier(id_fieldType + ".2.3.1"); 24 25 static final DERObjectIdentifier tpBasis 26 = new DERObjectIdentifier(id_fieldType + ".2.3.2"); 27 28 static final DERObjectIdentifier ppBasis 29 = new DERObjectIdentifier(id_fieldType + ".2.3.3"); 30 31 static final String id_ecSigType = ansi_X9_62 + ".4"; 32 33 static final DERObjectIdentifier ecdsa_with_SHA1 34 = new DERObjectIdentifier(id_ecSigType + ".1"); 35 36 static final String id_publicKeyType = ansi_X9_62 + ".2"; 37 38 static final DERObjectIdentifier id_ecPublicKey 39 = new DERObjectIdentifier(id_publicKeyType + ".1"); 40 41 static final DERObjectIdentifier ecdsa_with_SHA2 42 = new DERObjectIdentifier(id_ecSigType + ".3"); 43 44 static final DERObjectIdentifier ecdsa_with_SHA224 45 = new DERObjectIdentifier(ecdsa_with_SHA2 + ".1"); 46 47 static final DERObjectIdentifier ecdsa_with_SHA256 48 = new DERObjectIdentifier(ecdsa_with_SHA2 + ".2"); 49 50 static final DERObjectIdentifier ecdsa_with_SHA384 51 = new DERObjectIdentifier(ecdsa_with_SHA2 + ".3"); 52 53 static final DERObjectIdentifier ecdsa_with_SHA512 54 = new DERObjectIdentifier(ecdsa_with_SHA2 + ".4"); 55 56 // 57 // named curves 58 // 59 static final String ellipticCurve = ansi_X9_62 + ".3"; 60 61 // 62 // Two Curves 63 // 64 static final String cTwoCurve = ellipticCurve + ".0"; 65 66 static final DERObjectIdentifier c2pnb163v1 = new DERObjectIdentifier(cTwoCurve + ".1"); 67 static final DERObjectIdentifier c2pnb163v2 = new DERObjectIdentifier(cTwoCurve + ".2"); 68 static final DERObjectIdentifier c2pnb163v3 = new DERObjectIdentifier(cTwoCurve + ".3"); 69 static final DERObjectIdentifier c2pnb176w1 = new DERObjectIdentifier(cTwoCurve + ".4"); 70 static final DERObjectIdentifier c2tnb191v1 = new DERObjectIdentifier(cTwoCurve + ".5"); 71 static final DERObjectIdentifier c2tnb191v2 = new DERObjectIdentifier(cTwoCurve + ".6"); 72 static final DERObjectIdentifier c2tnb191v3 = new DERObjectIdentifier(cTwoCurve + ".7"); 73 static final DERObjectIdentifier c2onb191v4 = new DERObjectIdentifier(cTwoCurve + ".8"); 74 static final DERObjectIdentifier c2onb191v5 = new DERObjectIdentifier(cTwoCurve + ".9"); 75 static final DERObjectIdentifier c2pnb208w1 = new DERObjectIdentifier(cTwoCurve + ".10"); 76 static final DERObjectIdentifier c2tnb239v1 = new DERObjectIdentifier(cTwoCurve + ".11"); 77 static final DERObjectIdentifier c2tnb239v2 = new DERObjectIdentifier(cTwoCurve + ".12"); 78 static final DERObjectIdentifier c2tnb239v3 = new DERObjectIdentifier(cTwoCurve + ".13"); 79 static final DERObjectIdentifier c2onb239v4 = new DERObjectIdentifier(cTwoCurve + ".14"); 80 static final DERObjectIdentifier c2onb239v5 = new DERObjectIdentifier(cTwoCurve + ".15"); 81 static final DERObjectIdentifier c2pnb272w1 = new DERObjectIdentifier(cTwoCurve + ".16"); 82 static final DERObjectIdentifier c2png304v1 = new DERObjectIdentifier(cTwoCurve + ".17"); 83 static final DERObjectIdentifier c2tnb359v1 = new DERObjectIdentifier(cTwoCurve + ".18"); 84 static final DERObjectIdentifier c2pnb368w1 = new DERObjectIdentifier(cTwoCurve + ".19"); 85 static final DERObjectIdentifier c2tnb431r1 = new DERObjectIdentifier(cTwoCurve + ".20"); 86 87 // 88 // Prime 89 // 90 static final String primeCurve = ellipticCurve + ".1"; 91 92 static final DERObjectIdentifier prime192v1 = new DERObjectIdentifier(primeCurve + ".1"); 93 static final DERObjectIdentifier prime192v2 = new DERObjectIdentifier(primeCurve + ".2"); 94 static final DERObjectIdentifier prime192v3 = new DERObjectIdentifier(primeCurve + ".3"); 95 static final DERObjectIdentifier prime239v1 = new DERObjectIdentifier(primeCurve + ".4"); 96 static final DERObjectIdentifier prime239v2 = new DERObjectIdentifier(primeCurve + ".5"); 97 static final DERObjectIdentifier prime239v3 = new DERObjectIdentifier(primeCurve + ".6"); 98 static final DERObjectIdentifier prime256v1 = new DERObjectIdentifier(primeCurve + ".7"); 99 100 // 101 // Diffie-Hellman 102 // 103 // dhpublicnumber OBJECT IDENTIFIER ::= { iso(1) member-body(2) 104 // us(840) ansi-x942(10046) number-type(2) 1 } 105 // 106 static final DERObjectIdentifier dhpublicnumber = new DERObjectIdentifier("1.2.840.10046.2.1"); 107 108 // 109 // DSA 110 // 111 // dsapublicnumber OBJECT IDENTIFIER ::= { iso(1) member-body(2) 112 // us(840) ansi-x957(10040) number-type(4) 1 } 113 static final DERObjectIdentifier id_dsa = new DERObjectIdentifier("1.2.840.10040.4.1"); 114 115 /** 116 * id-dsa-with-sha1 OBJECT IDENTIFIER ::= { iso(1) member-body(2) 117 * us(840) x9-57 (10040) x9cm(4) 3 } 118 */ 119 public static final DERObjectIdentifier id_dsa_with_sha1 = new DERObjectIdentifier("1.2.840.10040.4.3"); 120 } 121 122