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

25 lines
688 B
Java

package o;
import java.security.Provider;
import java.security.Security;
/* loaded from: classes3.dex */
public final class DSF {
public static boolean b() {
try {
Class.forName("cn.wind.smjce.crypto.engines.SM4Engine");
try {
if (Security.getProvider("SM") != null) {
return true;
}
Security.addProvider((Provider) Class.forName("cn.wind.smjce.jce.provider.SMProvider").newInstance());
return true;
} catch (Throwable unused) {
return true;
}
} catch (Exception unused2) {
return false;
}
}
}