what-the-bank/sources/org/bouncycastle/jcajce/util/BCJcaJceHelper.java

27 lines
847 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.jcajce.util;
import java.security.Provider;
import java.security.Security;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
/* loaded from: classes6.dex */
public class BCJcaJceHelper extends ProviderJcaJceHelper {
private static volatile Provider bcProvider;
private static Provider getBouncyCastleProvider() {
if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) != null) {
return Security.getProvider(BouncyCastleProvider.PROVIDER_NAME);
}
if (bcProvider != null) {
return bcProvider;
}
BouncyCastleProvider bouncyCastleProvider = new BouncyCastleProvider();
bcProvider = bouncyCastleProvider;
return bouncyCastleProvider;
}
public BCJcaJceHelper() {
super(getBouncyCastleProvider());
}
}