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()); } }