Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.telkom.mwalleo.p245d;
- import com.telkom.mwalleo.p245d.C4869v.C4860a;
- import java.math.BigInteger;
- import java.util.Random;
- import p065b.p066f.p067b.C1278j;
- /* renamed from: com.telkom.mwalleo.d.a */
- public final class C4589a {
- /* renamed from: a */
- public static final C4589a f15598a = new C4589a();
- /* renamed from: b */
- private static final BigInteger f15599b = new BigInteger("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF", 16);
- /* renamed from: c */
- private static final BigInteger f15600c = new BigInteger("2");
- private C4589a() {
- }
- /* renamed from: a */
- private final BigInteger m24815a(BigInteger bigInteger) {
- Object modPow = f15600c.modPow(bigInteger, f15599b);
- C1278j.m6457a(modPow, "GENERATOR.modPow(privateKey, SHARED_LARGE_PRIME)");
- return modPow;
- }
- /* renamed from: a */
- private final BigInteger m24816a(BigInteger bigInteger, BigInteger bigInteger2) {
- Object modPow = bigInteger2.modPow(bigInteger, f15599b);
- C1278j.m6457a(modPow, "publicKey.modPow(privateKey, SHARED_LARGE_PRIME)");
- return modPow;
- }
- /* renamed from: b */
- private final BigInteger m24817b() {
- byte[] bArr = new byte[400];
- new Random().nextBytes(bArr);
- return new BigInteger(1, bArr);
- }
- /* renamed from: a */
- public final C4860a m24818a() {
- String str = "nubuntu_key_1";
- str = "nubuntu_key_2";
- str = "nubuntu_key_3";
- return new C4860a(m24817b().toString(16), m24817b().toString(16), m24817b().toString(16));
- }
- /* renamed from: a */
- public final C4860a m24819a(C4860a c4860a) {
- C1278j.m6460b(c4860a, "secretKey");
- String str = "nubuntu_secret_a";
- str = "nubuntu_secret_a_result";
- str = "nubuntu_secret_b";
- str = "nubuntu_secret_b_result";
- str = "nubuntu_secret_c";
- str = "nubuntu_secret_c_result";
- return new C4860a(m24815a(new BigInteger(c4860a.m25160a(), 16)).toString(16), m24815a(new BigInteger(c4860a.m25161b(), 16)).toString(16), m24815a(new BigInteger(c4860a.m25162c(), 16)).toString(16));
- }
- /* renamed from: a */
- public final C4860a m24820a(C4860a c4860a, C4860a c4860a2) {
- C1278j.m6460b(c4860a, "privateKey");
- if (c4860a2 == null) {
- String str = "nubuntu_private";
- String str2 = "aVar2 null";
- return new C4860a("", "", "");
- }
- str = "nubuntu_private_a_1";
- str = "nubuntu_private_a_2";
- str = "nubuntu_private_a_result";
- str = "nubuntu_private_b_1";
- str = "nubuntu_private_b_2";
- str = "nubuntu_private_b_result";
- str = "nubuntu_private_c_1";
- str = "nubuntu_private_c_2";
- str = "nubuntu_private_c_result";
- return new C4860a(m24816a(new BigInteger(c4860a.m25160a(), 16), new BigInteger(c4860a2.m25160a(), 16)).toString(16), m24816a(new BigInteger(c4860a.m25161b(), 16), new BigInteger(c4860a2.m25161b(), 16)).toString(16), m24816a(new BigInteger(c4860a.m25162c(), 16), new BigInteger(c4860a2.m25162c(), 16)).toString(16));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement