what-the-bank/sources/org/bouncycastle/asn1/x9/X962NamedCurves.java

525 lines
35 KiB
Java

package org.bouncycastle.asn1.x9;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import java.lang.reflect.Method;
import java.math.BigInteger;
import java.util.Enumeration;
import java.util.Hashtable;
import net.sf.scuba.smartcards.ISO7816;
import o.TVH;
import o.xzZ;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.bouncycastle.math.ec.ECCurve;
import org.bouncycastle.util.Strings;
import org.bouncycastle.util.encoders.Hex;
import org.jmrtd.PassportService;
/* loaded from: classes6.dex */
public class X962NamedCurves {
static X9ECParametersHolder prime192v1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.1
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("ffffffffffffffffffffffff99def836146bc9b1b4d22831", 16);
BigInteger valueOf = BigInteger.valueOf(1L);
ECCurve.Fp fp = new ECCurve.Fp(new BigInteger("6277101735386680763835789423207666416083908700390324961279"), new BigInteger("fffffffffffffffffffffffffffffffefffffffffffffffc", 16), new BigInteger("64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1", 16), bigInteger, valueOf);
return new X9ECParameters(fp, new X9ECPoint(fp, Hex.decode("03188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012")), bigInteger, valueOf, Hex.decode("3045AE6FC8422f64ED579528D38120EAE12196D5"));
}
};
static X9ECParametersHolder prime192v2 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.2
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("fffffffffffffffffffffffe5fb1a724dc80418648d8dd31", 16);
BigInteger valueOf = BigInteger.valueOf(1L);
ECCurve.Fp fp = new ECCurve.Fp(new BigInteger("6277101735386680763835789423207666416083908700390324961279"), new BigInteger("fffffffffffffffffffffffffffffffefffffffffffffffc", 16), new BigInteger("cc22d6dfb95c6b25e49c0d6364a4e5980c393aa21668d953", 16), bigInteger, valueOf);
return new X9ECParameters(fp, new X9ECPoint(fp, Hex.decode("03eea2bae7e1497842f2de7769cfe9c989c072ad696f48034a")), bigInteger, valueOf, Hex.decode("31a92ee2029fd10d901b113e990710f0d21ac6b6"));
}
};
static X9ECParametersHolder prime192v3 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.3
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("ffffffffffffffffffffffff7a62d031c83f4294f640ec13", 16);
BigInteger valueOf = BigInteger.valueOf(1L);
ECCurve.Fp fp = new ECCurve.Fp(new BigInteger("6277101735386680763835789423207666416083908700390324961279"), new BigInteger("fffffffffffffffffffffffffffffffefffffffffffffffc", 16), new BigInteger("22123dc2395a05caa7423daeccc94760a7d462256bd56916", 16), bigInteger, valueOf);
return new X9ECParameters(fp, new X9ECPoint(fp, Hex.decode("027d29778100c65a1da1783716588dce2b8b4aee8e228f1896")), bigInteger, valueOf, Hex.decode("c469684435deb378c4b65ca9591e2a5763059a2e"));
}
};
static X9ECParametersHolder prime239v1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.4
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("7fffffffffffffffffffffff7fffff9e5e9a9f5d9071fbd1522688909d0b", 16);
BigInteger valueOf = BigInteger.valueOf(1L);
ECCurve.Fp fp = new ECCurve.Fp(new BigInteger("883423532389192164791648750360308885314476597252960362792450860609699839"), new BigInteger("7fffffffffffffffffffffff7fffffffffff8000000000007ffffffffffc", 16), new BigInteger("6b016c3bdcf18941d0d654921475ca71a9db2fb27d1d37796185c2942c0a", 16), bigInteger, valueOf);
return new X9ECParameters(fp, new X9ECPoint(fp, Hex.decode("020ffa963cdca8816ccc33b8642bedf905c3d358573d3f27fbbd3b3cb9aaaf")), bigInteger, valueOf, Hex.decode("e43bb460f0b80cc0c0b075798e948060f8321b7d"));
}
};
static X9ECParametersHolder prime239v2 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.5
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("7fffffffffffffffffffffff800000cfa7e8594377d414c03821bc582063", 16);
BigInteger valueOf = BigInteger.valueOf(1L);
ECCurve.Fp fp = new ECCurve.Fp(new BigInteger("883423532389192164791648750360308885314476597252960362792450860609699839"), new BigInteger("7fffffffffffffffffffffff7fffffffffff8000000000007ffffffffffc", 16), new BigInteger("617fab6832576cbbfed50d99f0249c3fee58b94ba0038c7ae84c8c832f2c", 16), bigInteger, valueOf);
return new X9ECParameters(fp, new X9ECPoint(fp, Hex.decode("0238af09d98727705120c921bb5e9e26296a3cdcf2f35757a0eafd87b830e7")), bigInteger, valueOf, Hex.decode("e8b4011604095303ca3b8099982be09fcb9ae616"));
}
};
static X9ECParametersHolder prime239v3 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.6
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("7fffffffffffffffffffffff7fffff975deb41b3a6057c3c432146526551", 16);
BigInteger valueOf = BigInteger.valueOf(1L);
ECCurve.Fp fp = new ECCurve.Fp(new BigInteger("883423532389192164791648750360308885314476597252960362792450860609699839"), new BigInteger("7fffffffffffffffffffffff7fffffffffff8000000000007ffffffffffc", 16), new BigInteger("255705fa2a306654b1f4cb03d6a750a30c250102d4988717d9ba15ab6d3e", 16), bigInteger, valueOf);
return new X9ECParameters(fp, new X9ECPoint(fp, Hex.decode("036768ae8e18bb92cfcf005c949aa2c6d94853d0e660bbf854b1c9505fe95a")), bigInteger, valueOf, Hex.decode("7d7374168ffe3471b60a857686a19475d3bfa2ff"));
}
};
static X9ECParametersHolder prime256v1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.7
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551", 16);
BigInteger valueOf = BigInteger.valueOf(1L);
ECCurve.Fp fp = new ECCurve.Fp(new BigInteger("115792089210356248762697446949407573530086143415290314195533631308867097853951"), new BigInteger("ffffffff00000001000000000000000000000000fffffffffffffffffffffffc", 16), new BigInteger("5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b", 16), bigInteger, valueOf);
return new X9ECParameters(fp, new X9ECPoint(fp, Hex.decode("036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296")), bigInteger, valueOf, Hex.decode("c49d360886e704936a6678e1139d26b7819f7e90"));
}
};
static X9ECParametersHolder c2pnb163v1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.8
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("0400000000000000000001E60FC8821CC74DAEAFC1", 16);
BigInteger valueOf = BigInteger.valueOf(2L);
ECCurve.F2m f2m = new ECCurve.F2m(CipherSuite.TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, 1, 2, 8, new BigInteger("072546B5435234A422E0789675F432C89435DE5242", 16), new BigInteger("00C9517D06D5240D3CFF38C74B20B6CD4D6F9DD4D9", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("0307AF69989546103D79329FCC3D74880F33BBE803CB")), bigInteger, valueOf, Hex.decode("D2C0FB15760860DEF1EEF4D696E6768756151754"));
}
};
static X9ECParametersHolder c2pnb163v2 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.9
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("03FFFFFFFFFFFFFFFFFFFDF64DE1151ADBB78F10A7", 16);
BigInteger valueOf = BigInteger.valueOf(2L);
ECCurve.F2m f2m = new ECCurve.F2m(CipherSuite.TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, 1, 2, 8, new BigInteger("0108B39E77C4B108BED981ED0E890E117C511CF072", 16), new BigInteger("0667ACEB38AF4E488C407433FFAE4F1C811638DF20", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("030024266E4EB5106D0A964D92C4860E2671DB9B6CC5")), bigInteger, valueOf, (byte[]) null);
}
};
static X9ECParametersHolder c2pnb163v3 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.10
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("03FFFFFFFFFFFFFFFFFFFE1AEE140F110AFF961309", 16);
BigInteger valueOf = BigInteger.valueOf(2L);
ECCurve.F2m f2m = new ECCurve.F2m(CipherSuite.TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, 1, 2, 8, new BigInteger("07A526C63D3E25A256A007699F5447E32AE456B50E", 16), new BigInteger("03F7061798EB99E238FD6F1BF95B48FEEB4854252B", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("0202F9F87B7C574D0BDECF8A22E6524775F98CDEBDCB")), bigInteger, valueOf, (byte[]) null);
}
};
static X9ECParametersHolder c2pnb176w1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.11
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("010092537397ECA4F6145799D62B0A19CE06FE26AD", 16);
BigInteger valueOf = BigInteger.valueOf(65390L);
ECCurve.F2m f2m = new ECCurve.F2m(CipherSuite.TLS_PSK_WITH_NULL_SHA256, 1, 2, 43, new BigInteger("00E4E6DB2995065C407D9D39B8D0967B96704BA8E9C90B", 16), new BigInteger("005DDA470ABE6414DE8EC133AE28E9BBD7FCEC0AE0FFF2", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("038D16C2866798B600F9F08BB4A8E860F3298CE04A5798")), bigInteger, valueOf, (byte[]) null);
}
};
static X9ECParametersHolder c2tnb191v1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.12
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("40000000000000000000000004A20E90C39067C893BBB9A5", 16);
BigInteger valueOf = BigInteger.valueOf(2L);
ECCurve.F2m f2m = new ECCurve.F2m(CipherSuite.TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256, 9, new BigInteger("2866537B676752636A68F56554E12640276B649EF7526267", 16), new BigInteger("2E45EF571F00786F67B0081B9495A3D95462F5DE0AA185EC", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("0236B3DAF8A23206F9C4F299D7B21A9C369137F2C84AE1AA0D")), bigInteger, valueOf, Hex.decode("4E13CA542744D696E67687561517552F279A8C84"));
}
};
static X9ECParametersHolder c2tnb191v2 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.13
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("20000000000000000000000050508CB89F652824E06B8173", 16);
BigInteger valueOf = BigInteger.valueOf(4L);
ECCurve.F2m f2m = new ECCurve.F2m(CipherSuite.TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256, 9, new BigInteger("401028774D7777C7B7666D1366EA432071274F89FF01E718", 16), new BigInteger("0620048D28BCBD03B6249C99182B7C8CD19700C362C46A01", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("023809B2B7CC1B28CC5A87926AAD83FD28789E81E2C9E3BF10")), bigInteger, valueOf, (byte[]) null);
}
};
static X9ECParametersHolder c2tnb191v3 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.14
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("155555555555555555555555610C0B196812BFB6288A3EA3", 16);
BigInteger valueOf = BigInteger.valueOf(6L);
ECCurve.F2m f2m = new ECCurve.F2m(CipherSuite.TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256, 9, new BigInteger("6C01074756099122221056911C77D77E77A777E7E7E77FCB", 16), new BigInteger("71FE1AF926CF847989EFEF8DB459F66394D90F32AD3F15E8", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("03375D4CE24FDE434489DE8746E71786015009E66E38A926DD")), bigInteger, valueOf, (byte[]) null);
}
};
static X9ECParametersHolder c2pnb208w1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.15
private static final byte[] $$a = {33, -82, ISO7816.INS_UNBLOCK_CHV, 67};
private static final int $$b = CipherSuite.TLS_DHE_DSS_WITH_AES_128_GCM_SHA256;
private static int $10 = 0;
private static int $11 = 1;
private static int e = 0;
private static int d = 1;
private static char[] c = {39975};
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x002a). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void f(byte r5, int r6, int r7, java.lang.Object[] r8) {
/*
int r7 = r7 * 2
int r7 = 3 - r7
int r6 = r6 * 3
int r0 = r6 + 1
int r5 = r5 * 2
int r5 = 73 - r5
byte[] r1 = org.bouncycastle.asn1.x9.X962NamedCurves.AnonymousClass15.$$a
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L16
r4 = r6
r3 = r2
goto L2a
L16:
r3 = r2
L17:
byte r4 = (byte) r5
r0[r3] = r4
if (r3 != r6) goto L24
java.lang.String r5 = new java.lang.String
r5.<init>(r0, r2)
r8[r2] = r5
return
L24:
int r7 = r7 + 1
int r3 = r3 + 1
r4 = r1[r7]
L2a:
int r4 = -r4
int r5 = r5 + r4
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: org.bouncycastle.asn1.x9.X962NamedCurves.AnonymousClass15.f(byte, int, int, java.lang.Object[]):void");
}
private static void b(byte[] bArr, int[] iArr, boolean z, Object[] objArr) {
Object method;
int i;
int i2 = 2;
int i3 = 2 % 2;
TVH tvh = new TVH();
int i4 = 0;
int i5 = iArr[0];
int i6 = 1;
int i7 = iArr[1];
int i8 = iArr[2];
int i9 = iArr[3];
char[] cArr = c;
char c2 = '0';
if (cArr != null) {
int length = cArr.length;
char[] cArr2 = new char[length];
int i10 = 0;
while (i10 < length) {
int i11 = $11 + 111;
$10 = i11 % 128;
if (i11 % i2 != 0) {
try {
Object[] objArr2 = new Object[i6];
objArr2[i4] = Integer.valueOf(cArr[i10]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
i = length;
} else {
Class cls = (Class) xzZ.c(TextUtils.indexOf("", c2, i4) + PassportService.DEFAULT_MAX_BLOCKSIZE, (ExpandableListView.getPackedPositionForGroup(i4) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(i4) == 0L ? 0 : -1)) + 5, (char) (TextUtils.indexOf("", c2, i4) + 41978));
byte b = (byte) 1;
byte b2 = (byte) (b - 1);
i = length;
Object[] objArr3 = new Object[1];
f(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr2[i10] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
i = length;
Object[] objArr4 = {Integer.valueOf(cArr[i10])};
Object obj2 = xzZ.y.get(1645349359);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(223 - (ViewConfiguration.getFadingEdgeLength() >> 16), Process.getGidForName("") + 6, (char) (41978 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))));
byte b3 = (byte) 1;
byte b4 = (byte) (b3 - 1);
Object[] objArr5 = new Object[1];
f(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(1645349359, obj2);
}
cArr2[i10] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i10++;
}
length = i;
i2 = 2;
i4 = 0;
i6 = 1;
c2 = '0';
}
cArr = cArr2;
}
char[] cArr3 = new char[i7];
System.arraycopy(cArr, i5, cArr3, 0, i7);
if (bArr != null) {
char[] cArr4 = new char[i7];
tvh.c = 0;
char c3 = 0;
while (tvh.c < i7) {
if (bArr[tvh.c] == 1) {
int i12 = $11 + 25;
$10 = i12 % 128;
int i13 = i12 % 2;
int i14 = tvh.c;
Object[] objArr6 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c3)};
Object obj3 = xzZ.y.get(850398076);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(ImageFormat.getBitsPerPixel(0) + 503, 5 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 53))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj3);
}
cArr4[i14] = ((Character) ((Method) obj3).invoke(null, objArr6)).charValue();
int i15 = $11 + 61;
$10 = i15 % 128;
int i16 = i15 % 2;
} else {
int i17 = tvh.c;
Object[] objArr7 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c3)};
Object obj4 = xzZ.y.get(1084521042);
if (obj4 != null) {
method = obj4;
} else {
method = ((Class) xzZ.c(TextUtils.lastIndexOf("", '0', 0, 0) + 16, ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) (58134 - Color.blue(0)))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, method);
}
cArr4[i17] = ((Character) ((Method) method).invoke(null, objArr7)).charValue();
int i18 = $10 + 33;
$11 = i18 % 128;
int i19 = i18 % 2;
}
char c4 = cArr4[tvh.c];
Object[] objArr8 = {tvh, tvh};
Object obj5 = xzZ.y.get(1698744941);
if (obj5 == null) {
Class cls3 = (Class) xzZ.c((ViewConfiguration.getScrollBarSize() >> 8) + 402, 5 - View.resolveSizeAndState(0, 0, 0), (char) (21607 - Process.getGidForName("")));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr9 = new Object[1];
f(b5, b6, b6, objArr9);
obj5 = cls3.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj5);
}
((Method) obj5).invoke(null, objArr8);
c3 = c4;
}
cArr3 = cArr4;
}
if (i9 > 0) {
int i20 = $11 + 53;
$10 = i20 % 128;
int i21 = i20 % 2;
char[] cArr5 = new char[i7];
System.arraycopy(cArr3, 0, cArr5, 0, i7);
int i22 = i7 - i9;
System.arraycopy(cArr5, 0, cArr3, i22, i9);
System.arraycopy(cArr5, i9, cArr3, 0, i22);
}
if (z) {
int i23 = $10 + 113;
$11 = i23 % 128;
int i24 = i23 % 2;
char[] cArr6 = new char[i7];
int i25 = 0;
while (true) {
tvh.c = i25;
if (tvh.c >= i7) {
break;
}
int i26 = $10 + 9;
$11 = i26 % 128;
int i27 = i26 % 2;
cArr6[tvh.c] = cArr3[(i7 - tvh.c) - 1];
i25 = tvh.c + 1;
}
cArr3 = cArr6;
}
if (i8 > 0) {
int i28 = 0;
while (true) {
tvh.c = i28;
if (tvh.c >= i7) {
break;
}
cArr3[tvh.c] = (char) (cArr3[tvh.c] - iArr[2]);
i28 = tvh.c + 1;
}
}
objArr[0] = new String(cArr3);
}
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
int i = 2 % 2;
BigInteger bigInteger = new BigInteger("0101BAF95C9723C57B6C21DA2EFF2D5ED588BDD5717E212F9D", 16);
BigInteger valueOf = BigInteger.valueOf(65096L);
Object[] objArr = new Object[1];
b(new byte[]{1}, new int[]{0, 1, 41, 1}, true, objArr);
ECCurve.F2m f2m = new ECCurve.F2m(208, 1, 2, 83, new BigInteger(((String) objArr[0]).intern(), 16), new BigInteger("00C8619ED45A62E6212E1160349E2BFA844439FAFC2A3FD1638F9E", 16), bigInteger, valueOf);
X9ECParameters x9ECParameters = new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("0289FDFBE4ABE193DF9559ECF07AC0CE78554E2784EB8C1ED1A57A")), bigInteger, valueOf, (byte[]) null);
int i2 = d + 41;
e = i2 % 128;
int i3 = i2 % 2;
return x9ECParameters;
}
};
static X9ECParametersHolder c2tnb239v1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.16
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("2000000000000000000000000000000F4D42FFE1492A4993F1CAD666E447", 16);
BigInteger valueOf = BigInteger.valueOf(4L);
ECCurve.F2m f2m = new ECCurve.F2m(239, 36, new BigInteger("32010857077C5431123A46B808906756F543423E8D27877578125778AC76", 16), new BigInteger("790408F2EEDAF392B012EDEFB3392F30F4327C0CA3F31FC383C422AA8C16", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("0257927098FA932E7C0A96D3FD5B706EF7E5F5C156E16B7E7C86038552E91D")), bigInteger, valueOf, (byte[]) null);
}
};
static X9ECParametersHolder c2tnb239v2 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.17
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("1555555555555555555555555555553C6F2885259C31E3FCDF154624522D", 16);
BigInteger valueOf = BigInteger.valueOf(6L);
ECCurve.F2m f2m = new ECCurve.F2m(239, 36, new BigInteger("4230017757A767FAE42398569B746325D45313AF0766266479B75654E65F", 16), new BigInteger("5037EA654196CFF0CD82B2C14A2FCF2E3FF8775285B545722F03EACDB74B", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("0228F9D04E900069C8DC47A08534FE76D2B900B7D7EF31F5709F200C4CA205")), bigInteger, valueOf, (byte[]) null);
}
};
static X9ECParametersHolder c2tnb239v3 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.18
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("0CCCCCCCCCCCCCCCCCCCCCCCCCCCCCAC4912D2D9DF903EF9888B8A0E4CFF", 16);
BigInteger valueOf = BigInteger.valueOf(10L);
ECCurve.F2m f2m = new ECCurve.F2m(239, 36, new BigInteger("01238774666A67766D6676F778E676B66999176666E687666D8766C66A9F", 16), new BigInteger("6A941977BA9F6A435199ACFC51067ED587F519C5ECB541B8E44111DE1D40", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("0370F6E9D04D289C4E89913CE3530BFDE903977D42B146D539BF1BDE4E9C92")), bigInteger, valueOf, (byte[]) null);
}
};
static X9ECParametersHolder c2pnb272w1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.19
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("0100FAF51354E0E39E4892DF6E319C72C8161603FA45AA7B998A167B8F1E629521", 16);
BigInteger valueOf = BigInteger.valueOf(65286L);
ECCurve.F2m f2m = new ECCurve.F2m(272, 1, 3, 56, new BigInteger("0091A091F03B5FBA4AB2CCF49C4EDD220FB028712D42BE752B2C40094DBACDB586FB20", 16), new BigInteger("7167EFC92BB2E3CE7C8AAAFF34E12A9C557003D7C73A6FAF003F99F6CC8482E540F7", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("026108BABB2CEEBCF787058A056CBE0CFE622D7723A289E08A07AE13EF0D10D171DD8D")), bigInteger, valueOf, (byte[]) null);
}
};
static X9ECParametersHolder c2pnb304w1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.20
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("0101D556572AABAC800101D556572AABAC8001022D5C91DD173F8FB561DA6899164443051D", 16);
BigInteger valueOf = BigInteger.valueOf(65070L);
ECCurve.F2m f2m = new ECCurve.F2m(304, 1, 2, 11, new BigInteger("00FD0D693149A118F651E6DCE6802085377E5F882D1B510B44160074C1288078365A0396C8E681", 16), new BigInteger("00BDDB97E555A50A908E43B01C798EA5DAA6788F1EA2794EFCF57166B8C14039601E55827340BE", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("02197B07845E9BE2D96ADB0F5F3C7F2CFFBD7A3EB8B6FEC35C7FD67F26DDF6285A644F740A2614")), bigInteger, valueOf, (byte[]) null);
}
};
static X9ECParametersHolder c2tnb359v1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.21
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("01AF286BCA1AF286BCA1AF286BCA1AF286BCA1AF286BC9FB8F6B85C556892C20A7EB964FE7719E74F490758D3B", 16);
BigInteger valueOf = BigInteger.valueOf(76L);
ECCurve.F2m f2m = new ECCurve.F2m(359, 68, new BigInteger("5667676A654B20754F356EA92017D946567C46675556F19556A04616B567D223A5E05656FB549016A96656A557", 16), new BigInteger("2472E2D0197C49363F1FE7F5B6DB075D52B6947D135D8CA445805D39BC345626089687742B6329E70680231988", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("033C258EF3047767E7EDE0F1FDAA79DAEE3841366A132E163ACED4ED2401DF9C6BDCDE98E8E707C07A2239B1B097")), bigInteger, valueOf, (byte[]) null);
}
};
static X9ECParametersHolder c2pnb368w1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.22
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("010090512DA9AF72B08349D98A5DD4C7B0532ECA51CE03E2D10F3B7AC579BD87E909AE40A6F131E9CFCE5BD967", 16);
BigInteger valueOf = BigInteger.valueOf(65392L);
ECCurve.F2m f2m = new ECCurve.F2m(368, 1, 2, 85, new BigInteger("00E0D2EE25095206F5E2A4F9ED229F1F256E79A0E2B455970D8D0D865BD94778C576D62F0AB7519CCD2A1A906AE30D", 16), new BigInteger("00FC1217D4320A90452C760A58EDCD30C8DD069B3C34453837A34ED50CB54917E1C2112D84D164F444F8F74786046A", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("021085E2755381DCCCE3C1557AFA10C2F0C0C2825646C5B34A394CBCFA8BC16B22E7E789E927BE216F02E1FB136A5F")), bigInteger, valueOf, (byte[]) null);
}
};
static X9ECParametersHolder c2tnb431r1 = new X9ECParametersHolder() { // from class: org.bouncycastle.asn1.x9.X962NamedCurves.23
@Override // org.bouncycastle.asn1.x9.X9ECParametersHolder
protected final X9ECParameters createParameters() {
BigInteger bigInteger = new BigInteger("0340340340340340340340340340340340340340340340340340340323C313FAB50589703B5EC68D3587FEC60D161CC149C1AD4A91", 16);
BigInteger valueOf = BigInteger.valueOf(10080L);
ECCurve.F2m f2m = new ECCurve.F2m(431, 120, new BigInteger("1A827EF00DD6FC0E234CAF046C6A5D8A85395B236CC4AD2CF32A0CADBDC9DDF620B0EB9906D0957F6C6FEACD615468DF104DE296CD8F", 16), new BigInteger("10D9B4A3D9047D8B154359ABFB1B7F5485B04CEB868237DDC9DEDA982A679A5A919B626D4E50A8DD731B107A9962381FB5D807BF2618", 16), bigInteger, valueOf);
return new X9ECParameters(f2m, new X9ECPoint(f2m, Hex.decode("02120FC05D3C67A99DE161D2F4092622FECA701BE4F50F4758714E8A87BBF2A658EF8C21E7C5EFE965361F6C2999C0C247B0DBD70CE6B7")), bigInteger, valueOf, (byte[]) null);
}
};
static final Hashtable objIds = new Hashtable();
static final Hashtable curves = new Hashtable();
static final Hashtable names = new Hashtable();
public static ASN1ObjectIdentifier getOID(String str) {
return (ASN1ObjectIdentifier) objIds.get(Strings.toLowerCase(str));
}
public static Enumeration getNames() {
return objIds.keys();
}
public static String getName(ASN1ObjectIdentifier aSN1ObjectIdentifier) {
return (String) names.get(aSN1ObjectIdentifier);
}
public static X9ECParameters getByOID(ASN1ObjectIdentifier aSN1ObjectIdentifier) {
X9ECParametersHolder x9ECParametersHolder = (X9ECParametersHolder) curves.get(aSN1ObjectIdentifier);
if (x9ECParametersHolder != null) {
return x9ECParametersHolder.getParameters();
}
return null;
}
public static X9ECParameters getByName(String str) {
ASN1ObjectIdentifier aSN1ObjectIdentifier = (ASN1ObjectIdentifier) objIds.get(Strings.toLowerCase(str));
if (aSN1ObjectIdentifier != null) {
return getByOID(aSN1ObjectIdentifier);
}
return null;
}
static void defineCurve(String str, ASN1ObjectIdentifier aSN1ObjectIdentifier, X9ECParametersHolder x9ECParametersHolder) {
objIds.put(str, aSN1ObjectIdentifier);
names.put(aSN1ObjectIdentifier, str);
curves.put(aSN1ObjectIdentifier, x9ECParametersHolder);
}
static {
defineCurve("prime192v1", X9ObjectIdentifiers.prime192v1, prime192v1);
defineCurve("prime192v2", X9ObjectIdentifiers.prime192v2, prime192v2);
defineCurve("prime192v3", X9ObjectIdentifiers.prime192v3, prime192v3);
defineCurve("prime239v1", X9ObjectIdentifiers.prime239v1, prime239v1);
defineCurve("prime239v2", X9ObjectIdentifiers.prime239v2, prime239v2);
defineCurve("prime239v3", X9ObjectIdentifiers.prime239v3, prime239v3);
defineCurve("prime256v1", X9ObjectIdentifiers.prime256v1, prime256v1);
defineCurve("c2pnb163v1", X9ObjectIdentifiers.c2pnb163v1, c2pnb163v1);
defineCurve("c2pnb163v2", X9ObjectIdentifiers.c2pnb163v2, c2pnb163v2);
defineCurve("c2pnb163v3", X9ObjectIdentifiers.c2pnb163v3, c2pnb163v3);
defineCurve("c2pnb176w1", X9ObjectIdentifiers.c2pnb176w1, c2pnb176w1);
defineCurve("c2tnb191v1", X9ObjectIdentifiers.c2tnb191v1, c2tnb191v1);
defineCurve("c2tnb191v2", X9ObjectIdentifiers.c2tnb191v2, c2tnb191v2);
defineCurve("c2tnb191v3", X9ObjectIdentifiers.c2tnb191v3, c2tnb191v3);
defineCurve("c2pnb208w1", X9ObjectIdentifiers.c2pnb208w1, c2pnb208w1);
defineCurve("c2tnb239v1", X9ObjectIdentifiers.c2tnb239v1, c2tnb239v1);
defineCurve("c2tnb239v2", X9ObjectIdentifiers.c2tnb239v2, c2tnb239v2);
defineCurve("c2tnb239v3", X9ObjectIdentifiers.c2tnb239v3, c2tnb239v3);
defineCurve("c2pnb272w1", X9ObjectIdentifiers.c2pnb272w1, c2pnb272w1);
defineCurve("c2pnb304w1", X9ObjectIdentifiers.c2pnb304w1, c2pnb304w1);
defineCurve("c2tnb359v1", X9ObjectIdentifiers.c2tnb359v1, c2tnb359v1);
defineCurve("c2pnb368w1", X9ObjectIdentifiers.c2pnb368w1, c2pnb368w1);
defineCurve("c2tnb431r1", X9ObjectIdentifiers.c2tnb431r1, c2tnb431r1);
}
}