package org.bouncycastle.crypto.agreement.srp; import android.media.AudioTrack; import android.os.Process; import android.text.AndroidCharacter; import android.text.TextUtils; import android.util.TypedValue; import android.view.Gravity; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import java.math.BigInteger; import o.xzZ; import o.zUI; import org.bouncycastle.crypto.params.SRP6GroupParameters; import org.bouncycastle.util.encoders.Hex; /* loaded from: classes6.dex */ public class SRP6StandardGroups { private static final byte[] $$a = {17, 69, 17, -70}; private static final int $$b = 57; private static int $10 = 0; private static int $11 = 1; private static int a = 1; private static int b = 0; private static int c = 0; public static final SRP6GroupParameters rfc5054_1024; private static final String rfc5054_1024_N = "EEAF0AB9ADB38DD69C33F80AFA8FC5E86072618775FF3C0B9EA2314C9C256576D674DF7496EA81D3383B4813D692C6E0E0D5D8E250B98BE48E495C1D6089DAD15DC7D7B46154D6B6CE8EF4AD69B15D4982559B297BCF1885C529F566660E57EC68EDBC3C05726CC02FD4CBF4976EAA9AFD5138FE8376435B9FC61D2FC0EB06E3"; private static final String rfc5054_1024_g = "02"; public static final SRP6GroupParameters rfc5054_1536; private static final String rfc5054_1536_N = "9DEF3CAFB939277AB1F12A8617A47BBBDBA51DF499AC4C80BEEEA9614B19CC4D5F4F5F556E27CBDE51C6A94BE4607A291558903BA0D0F84380B655BB9A22E8DCDF028A7CEC67F0D08134B1C8B97989149B609E0BE3BAB63D47548381DBC5B1FC764E3F4B53DD9DA1158BFD3E2B9C8CF56EDF019539349627DB2FD53D24B7C48665772E437D6C7F8CE442734AF7CCB7AE837C264AE3A9BEB87F8A2FE9B8B5292E5A021FFF5E91479E8CE7A28C2442C6F315180F93499A234DCF76E3FED135F9BB"; private static final String rfc5054_1536_g = "02"; public static final SRP6GroupParameters rfc5054_2048; private static final String rfc5054_2048_N = "AC6BDB41324A9A9BF166DE5E1389582FAF72B6651987EE07FC3192943DB56050A37329CBB4A099ED8193E0757767A13DD52312AB4B03310DCD7F48A9DA04FD50E8083969EDB767B0CF6095179A163AB3661A05FBD5FAAAE82918A9962F0B93B855F97993EC975EEAA80D740ADBF4FF747359D041D5C33EA71D281E446B14773BCA97B43A23FB801676BD207A436C6481F1D2B9078717461A5B9D32E688F87748544523B524B0D57D5EA77A2775D2ECFA032CFBDBF52FB3786160279004E57AE6AF874E7303CE53299CCC041C7BC308D82A5698F3A8D0C38271AE35F8E9DBFBB694B5C803D89F7AE435DE236D525F54759B65E372FCD68EF20FA7111F9E4AFF73"; private static final String rfc5054_2048_g = "02"; public static final SRP6GroupParameters rfc5054_3072; private static final String rfc5054_3072_N = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF"; private static final String rfc5054_3072_g = "05"; public static final SRP6GroupParameters rfc5054_4096; private static final String rfc5054_4096_N = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A92108011A723C12A787E6D788719A10BDBA5B2699C327186AF4E23C1A946834B6150BDA2583E9CA2AD44CE8DBBBC2DB04DE8EF92E8EFC141FBECAA6287C59474E6BC05D99B2964FA090C3A2233BA186515BE7ED1F612970CEE2D7AFB81BDD762170481CD0069127D5B05AA993B4EA988D8FDDC186FFB7DC90A6C08F4DF435C934063199FFFFFFFFFFFFFFFF"; private static final String rfc5054_4096_g = "05"; public static final SRP6GroupParameters rfc5054_6144; private static final String rfc5054_6144_N = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A92108011A723C12A787E6D788719A10BDBA5B2699C327186AF4E23C1A946834B6150BDA2583E9CA2AD44CE8DBBBC2DB04DE8EF92E8EFC141FBECAA6287C59474E6BC05D99B2964FA090C3A2233BA186515BE7ED1F612970CEE2D7AFB81BDD762170481CD0069127D5B05AA993B4EA988D8FDDC186FFB7DC90A6C08F4DF435C93402849236C3FAB4D27C7026C1D4DCB2602646DEC9751E763DBA37BDF8FF9406AD9E530EE5DB382F413001AEB06A53ED9027D831179727B0865A8918DA3EDBEBCF9B14ED44CE6CBACED4BB1BDB7F1447E6CC254B332051512BD7AF426FB8F401378CD2BF5983CA01C64B92ECF032EA15D1721D03F482D7CE6E74FEF6D55E702F46980C82B5A84031900B1C9E59E7C97FBEC7E8F323A97A7E36CC88BE0F1D45B7FF585AC54BD407B22B4154AACC8F6D7EBF48E1D814CC5ED20F8037E0A79715EEF29BE32806A1D58BB7C5DA76F550AA3D8A1FBFF0EB19CCB1A313D55CDA56C9EC2EF29632387FE8D76E3C0468043E8F663F4860EE12BF2D5B0B7474D6E694F91E6DCC4024FFFFFFFFFFFFFFFF"; private static final String rfc5054_6144_g = "05"; public static final SRP6GroupParameters rfc5054_8192; private static final String rfc5054_8192_N = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A92108011A723C12A787E6D788719A10BDBA5B2699C327186AF4E23C1A946834B6150BDA2583E9CA2AD44CE8DBBBC2DB04DE8EF92E8EFC141FBECAA6287C59474E6BC05D99B2964FA090C3A2233BA186515BE7ED1F612970CEE2D7AFB81BDD762170481CD0069127D5B05AA993B4EA988D8FDDC186FFB7DC90A6C08F4DF435C93402849236C3FAB4D27C7026C1D4DCB2602646DEC9751E763DBA37BDF8FF9406AD9E530EE5DB382F413001AEB06A53ED9027D831179727B0865A8918DA3EDBEBCF9B14ED44CE6CBACED4BB1BDB7F1447E6CC254B332051512BD7AF426FB8F401378CD2BF5983CA01C64B92ECF032EA15D1721D03F482D7CE6E74FEF6D55E702F46980C82B5A84031900B1C9E59E7C97FBEC7E8F323A97A7E36CC88BE0F1D45B7FF585AC54BD407B22B4154AACC8F6D7EBF48E1D814CC5ED20F8037E0A79715EEF29BE32806A1D58BB7C5DA76F550AA3D8A1FBFF0EB19CCB1A313D55CDA56C9EC2EF29632387FE8D76E3C0468043E8F663F4860EE12BF2D5B0B7474D6E694F91E6DBE115974A3926F12FEE5E438777CB6A932DF8CD8BEC4D073B931BA3BC832B68D9DD300741FA7BF8AFC47ED2576F6936BA424663AAB639C5AE4F5683423B4742BF1C978238F16CBE39D652DE3FDB8BEFC848AD922222E04A4037C0713EB57A81A23F0C73473FC646CEA306B4BCBC8862F8385DDFA9D4B7FA2C087E879683303ED5BDD3A062B3CF5B3A278A66D2A13F83F44F82DDF310EE074AB6A364597E899A0255DC164F31CC50846851DF9AB48195DED7EA1B1D510BD7EE74D73FAF36BC31ECFA268359046F4EB879F924009438B481C6CD7889A002ED5EE382BC9190DA6FC026E479558E4475677E9AA9E3050E2765694DFC81F56E880B96E7160C980DD98EDD3DFFFFFFFFFFFFFFFFF"; private static final String rfc5054_8192_g = "13"; /* JADX WARN: Removed duplicated region for block: B:10:0x0026 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001e */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> 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(int r5, short r6, int r7, java.lang.Object[] r8) { /* byte[] r0 = org.bouncycastle.crypto.agreement.srp.SRP6StandardGroups.$$a int r6 = r6 * 2 int r1 = 1 - r6 int r5 = r5 * 2 int r5 = 4 - r5 int r7 = r7 * 7 int r7 = 76 - r7 byte[] r1 = new byte[r1] r2 = 0 int r6 = 0 - r6 if (r0 != 0) goto L18 r4 = r6 r3 = r2 goto L2a L18: r3 = r2 L19: byte r4 = (byte) r7 r1[r3] = r4 if (r3 != r6) goto L26 java.lang.String r5 = new java.lang.String r5.(r1, r2) r8[r2] = r5 return L26: int r3 = r3 + 1 r4 = r0[r5] L2a: int r7 = r7 + r4 int r5 = r5 + 1 goto L19 */ throw new UnsupportedOperationException("Method not decompiled: org.bouncycastle.crypto.agreement.srp.SRP6StandardGroups.f(int, short, int, java.lang.Object[]):void"); } private static void d(int i, int i2, int i3, char[] cArr, boolean z, Object[] objArr) { int i4 = 2 % 2; zUI zui = new zUI(); char[] cArr2 = new char[i]; zui.d = 0; while (zui.d < i) { int i5 = $11 + 45; $10 = i5 % 128; int i6 = i5 % 2; zui.c = cArr[zui.d]; cArr2[zui.d] = (char) (i3 + zui.c); int i7 = zui.d; try { Object[] objArr2 = {Integer.valueOf(cArr2[i7]), Integer.valueOf(b)}; Object obj = xzZ.y.get(880493502); if (obj == null) { Class cls = (Class) xzZ.c(143 - Gravity.getAbsoluteGravity(0, 0), Gravity.getAbsoluteGravity(0, 0) + 7, (char) TextUtils.getCapsMode("", 0, 0)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr3 = new Object[1]; f(b2, b3, (byte) (b3 + 1), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(880493502, obj); } cArr2[i7] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); Object[] objArr4 = {zui, zui}; Object obj2 = xzZ.y.get(1294990079); if (obj2 == null) { Class cls2 = (Class) xzZ.c((ViewConfiguration.getJumpTapTimeout() >> 16) + 342, (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 4, (char) TextUtils.indexOf("", "")); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; f(b4, b5, b5, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(1294990079, obj2); } ((Method) obj2).invoke(null, objArr4); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } if (i2 > 0) { int i8 = $10 + 61; $11 = i8 % 128; int i9 = i8 % 2; zui.a = i2; char[] cArr3 = new char[i]; System.arraycopy(cArr2, 0, cArr3, 0, i); System.arraycopy(cArr3, 0, cArr2, i - zui.a, zui.a); System.arraycopy(cArr3, zui.a, cArr2, 0, i - zui.a); } if (z) { char[] cArr4 = new char[i]; zui.d = 0; while (zui.d < i) { int i10 = $11 + 5; $10 = i10 % 128; if (i10 % 2 != 0) { cArr4[zui.d] = cArr2[(i << zui.d) % 0]; Object[] objArr6 = {zui, zui}; Object obj3 = xzZ.y.get(1294990079); if (obj3 == null) { Class cls3 = (Class) xzZ.c(342 - Gravity.getAbsoluteGravity(0, 0), 5 - (ViewConfiguration.getTapTimeout() >> 16), (char) (KeyEvent.getMaxKeyCode() >> 16)); byte b6 = (byte) 0; byte b7 = b6; Object[] objArr7 = new Object[1]; f(b6, b7, b7, objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1294990079, obj3); } ((Method) obj3).invoke(null, objArr6); } else { cArr4[zui.d] = cArr2[(i - zui.d) - 1]; try { Object[] objArr8 = {zui, zui}; Object obj4 = xzZ.y.get(1294990079); if (obj4 == null) { Class cls4 = (Class) xzZ.c((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 341, 5 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (char) (ViewConfiguration.getDoubleTapTimeout() >> 16)); byte b8 = (byte) 0; byte b9 = b8; Object[] objArr9 = new Object[1]; f(b8, b9, b9, objArr9); obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(1294990079, obj4); } ((Method) obj4).invoke(null, objArr8); } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } } cArr2 = cArr4; } String str = new String(cArr2); int i11 = $11 + 107; $10 = i11 % 128; int i12 = i11 % 2; objArr[0] = str; } static void e() { b = 2015661575; } private static SRP6GroupParameters fromNG(String str, String str2) { int i = 2 % 2; SRP6GroupParameters sRP6GroupParameters = new SRP6GroupParameters(fromHex(str), fromHex(str2)); int i2 = a + 53; c = i2 % 128; int i3 = i2 % 2; return sRP6GroupParameters; } private static BigInteger fromHex(String str) { int i = 2 % 2; BigInteger bigInteger = new BigInteger(1, Hex.decode(str)); int i2 = a + 87; c = i2 % 128; if (i2 % 2 == 0) { return bigInteger; } Object obj = null; obj.hashCode(); throw null; } static { c = 0; e(); Object[] objArr = new Object[1]; d('2' - AndroidCharacter.getMirror('0'), 2 - KeyEvent.getDeadChar(0, 0), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 81, new char[]{65535, 1}, false, objArr); rfc5054_1024 = fromNG(rfc5054_1024_N, ((String) objArr[0]).intern()); Object[] objArr2 = new Object[1]; d(2 - View.MeasureSpec.makeMeasureSpec(0, 0), (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 2, 81 - (Process.myTid() >> 22), new char[]{65535, 1}, false, objArr2); rfc5054_1536 = fromNG(rfc5054_1536_N, ((String) objArr2[0]).intern()); Object[] objArr3 = new Object[1]; d((ViewConfiguration.getWindowTouchSlop() >> 8) + 2, (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 2, View.MeasureSpec.getSize(0) + 81, new char[]{65535, 1}, false, objArr3); rfc5054_2048 = fromNG(rfc5054_2048_N, ((String) objArr3[0]).intern()); rfc5054_3072 = fromNG(rfc5054_3072_N, "05"); rfc5054_4096 = fromNG(rfc5054_4096_N, "05"); rfc5054_6144 = fromNG(rfc5054_6144_N, "05"); rfc5054_8192 = fromNG(rfc5054_8192_N, rfc5054_8192_g); int i = a + 23; c = i % 128; if (i % 2 != 0) { throw null; } } }