what-the-bank/sources/o/BgE.java

78 lines
2.1 KiB
Java

package o;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import o.C1050UnO;
import o.RDy;
import o.ykj;
import org.bouncycastle.pqc.jcajce.spec.McElieceCCA2KeyGenParameterSpec;
/* loaded from: classes.dex */
public final class BgE {
private final C1139Wlo<InterfaceC2545agd, String> b = new C1139Wlo<>(1000);
private final RDy.Sts<Sts> d = C1050UnO.c(10, new C1050UnO.RVV<Sts>(this) { // from class: o.BgE.5
private BgE b;
{
this.b = this;
}
@Override // o.C1050UnO.RVV
public final /* synthetic */ Sts e() {
return c();
}
private static Sts c() {
try {
return new Sts(MessageDigest.getInstance(McElieceCCA2KeyGenParameterSpec.SHA256));
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
}
}
});
public final String c(InterfaceC2545agd interfaceC2545agd) {
String b;
synchronized (this.b) {
b = this.b.b(interfaceC2545agd);
}
if (b == null) {
b = a(interfaceC2545agd);
}
synchronized (this.b) {
this.b.a(interfaceC2545agd, b);
}
return b;
}
private String a(InterfaceC2545agd interfaceC2545agd) {
Sts d = this.d.d();
if (d != null) {
Sts sts = d;
try {
interfaceC2545agd.a(sts.e);
return FKd.a(sts.e.digest());
} finally {
this.d.d(sts);
}
}
throw new NullPointerException("Argument must not be null");
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public static final class Sts implements C1050UnO.Sts {
private final ykj c = new ykj.LWm();
final MessageDigest e;
Sts(MessageDigest messageDigest) {
this.e = messageDigest;
}
@Override // o.C1050UnO.Sts
public final ykj c() {
return this.c;
}
}
}