package org.bouncycastle.jce; import java.util.Enumeration; import org.bouncycastle.asn1.ASN1ObjectIdentifier; import org.bouncycastle.asn1.cryptopro.ECGOST3410NamedCurves; import org.bouncycastle.crypto.params.ECDomainParameters; import org.bouncycastle.jce.spec.ECNamedCurveParameterSpec; /* loaded from: classes6.dex */ public class ECGOST3410NamedCurveTable { public static ECNamedCurveParameterSpec getParameterSpec(String str) { ECDomainParameters byName = ECGOST3410NamedCurves.getByName(str); if (byName == null) { try { byName = ECGOST3410NamedCurves.getByOID(new ASN1ObjectIdentifier(str)); } catch (IllegalArgumentException unused) { return null; } } if (byName == null) { return null; } return new ECNamedCurveParameterSpec(str, byName.getCurve(), byName.getG(), byName.getN(), byName.getH(), byName.getSeed()); } public static Enumeration getNames() { return ECGOST3410NamedCurves.getNames(); } }