Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. package com.telkom.mwalleo.p245d;
  2.  
  3. import com.telkom.mwalleo.p245d.C4869v.C4860a;
  4. import java.math.BigInteger;
  5. import java.util.Random;
  6. import p065b.p066f.p067b.C1278j;
  7.  
  8. /* renamed from: com.telkom.mwalleo.d.a */
  9. public final class C4589a {
  10. /* renamed from: a */
  11. public static final C4589a f15598a = new C4589a();
  12. /* renamed from: b */
  13. private static final BigInteger f15599b = new BigInteger("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF", 16);
  14. /* renamed from: c */
  15. private static final BigInteger f15600c = new BigInteger("2");
  16.  
  17. private C4589a() {
  18. }
  19.  
  20. /* renamed from: a */
  21. private final BigInteger m24815a(BigInteger bigInteger) {
  22. Object modPow = f15600c.modPow(bigInteger, f15599b);
  23. C1278j.m6457a(modPow, "GENERATOR.modPow(privateKey, SHARED_LARGE_PRIME)");
  24. return modPow;
  25. }
  26.  
  27. /* renamed from: a */
  28. private final BigInteger m24816a(BigInteger bigInteger, BigInteger bigInteger2) {
  29. Object modPow = bigInteger2.modPow(bigInteger, f15599b);
  30. C1278j.m6457a(modPow, "publicKey.modPow(privateKey, SHARED_LARGE_PRIME)");
  31. return modPow;
  32. }
  33.  
  34. /* renamed from: b */
  35. private final BigInteger m24817b() {
  36. byte[] bArr = new byte[400];
  37. new Random().nextBytes(bArr);
  38. return new BigInteger(1, bArr);
  39. }
  40.  
  41. /* renamed from: a */
  42. public final C4860a m24818a() {
  43. String str = "nubuntu_key_1";
  44. str = "nubuntu_key_2";
  45. str = "nubuntu_key_3";
  46. return new C4860a(m24817b().toString(16), m24817b().toString(16), m24817b().toString(16));
  47. }
  48.  
  49. /* renamed from: a */
  50. public final C4860a m24819a(C4860a c4860a) {
  51. C1278j.m6460b(c4860a, "secretKey");
  52. String str = "nubuntu_secret_a";
  53. str = "nubuntu_secret_a_result";
  54. str = "nubuntu_secret_b";
  55. str = "nubuntu_secret_b_result";
  56. str = "nubuntu_secret_c";
  57. str = "nubuntu_secret_c_result";
  58. 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));
  59. }
  60.  
  61. /* renamed from: a */
  62. public final C4860a m24820a(C4860a c4860a, C4860a c4860a2) {
  63. C1278j.m6460b(c4860a, "privateKey");
  64. if (c4860a2 == null) {
  65. String str = "nubuntu_private";
  66. String str2 = "aVar2 null";
  67. return new C4860a("", "", "");
  68. }
  69. str = "nubuntu_private_a_1";
  70. str = "nubuntu_private_a_2";
  71. str = "nubuntu_private_a_result";
  72. str = "nubuntu_private_b_1";
  73. str = "nubuntu_private_b_2";
  74. str = "nubuntu_private_b_result";
  75. str = "nubuntu_private_c_1";
  76. str = "nubuntu_private_c_2";
  77. str = "nubuntu_private_c_result";
  78. 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));
  79. }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement