what-the-bank/sources/com/huawei/hms/hatool/m1.java

81 lines
1.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.huawei.hms.hatool;
import java.security.SecureRandom;
import o.BAC;
import o.Yqs;
/* loaded from: classes2.dex */
public class m1 {
private static m1 b = new m1();
private a a = new a(this);
public void a(String str, String str2) {
byte[] bArr;
long b2 = b();
String c = w0.c(str, str2);
if (c == null || c.isEmpty()) {
v.e("WorkKeyHandler", "get rsa pubkey config error");
return;
}
if (b2 == 0) {
b2 = System.currentTimeMillis();
} else if (System.currentTimeMillis() - b2 <= 43200000) {
return;
}
SecureRandom d = BAC.d();
if (d == null) {
bArr = new byte[0];
} else {
byte[] bArr2 = new byte[16];
d.nextBytes(bArr2);
bArr = bArr2;
}
String b3 = Yqs.b(bArr);
String a2 = h0.a(c, b3);
this.a.a(b2);
this.a.b(b3);
this.a.a(a2);
}
public String c() {
return this.a.a;
}
public long b() {
return this.a.c;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public class a {
String a;
String b;
long c = 0;
final m1 d;
void b(String str) {
this.d.a.a = str;
}
void a(String str) {
this.d.a.b = str;
}
void a(long j) {
this.d.a.c = j;
}
a(m1 m1Var) {
this.d = m1Var;
}
}
public String a() {
return this.a.b;
}
public static m1 d() {
return b;
}
}