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

53 lines
1.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.logging.Logger;
/* loaded from: classes2.dex */
public final class uAf {
private static final Logger a = Logger.getLogger(uAf.class.getName());
private static final AtomicBoolean c = new AtomicBoolean(false);
/* loaded from: classes2.dex */
public enum RVV {
ALGORITHM_NOT_FIPS { // from class: o.uAf.RVV.3
@Override // o.uAf.RVV
public final boolean d() {
return !uAf.c();
}
},
ALGORITHM_REQUIRES_BORINGCRYPTO { // from class: o.uAf.RVV.5
@Override // o.uAf.RVV
public final boolean d() {
return !uAf.c() || uAf.e();
}
};
public abstract boolean d();
/* synthetic */ RVV(byte b) {
this();
}
}
public static boolean c() {
return c.get();
}
public static boolean e() {
return d().booleanValue();
}
private static Boolean d() {
try {
return (Boolean) Class.forName("org.conscrypt.Conscrypt").getMethod("isBoringSslFIPSBuild", new Class[0]).invoke(null, new Object[0]);
} catch (Exception unused) {
a.info("Conscrypt is not available or does not support checking for FIPS build.");
return Boolean.FALSE;
}
}
private uAf() {
}
}