package org.bouncycastle.math.ec.custom.sec; import java.math.BigInteger; import org.bouncycastle.math.ec.ECCurve; import org.bouncycastle.math.ec.ECFieldElement; import org.bouncycastle.math.ec.ECPoint; import org.bouncycastle.util.encoders.Hex; /* loaded from: classes6.dex */ public class SecP224R1Curve extends ECCurve.AbstractFp { private static final int SecP224R1_DEFAULT_COORDS = 2; public static final BigInteger q = new BigInteger(1, Hex.decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001")); protected SecP224R1Point infinity; @Override // org.bouncycastle.math.ec.ECCurve public boolean supportsCoordinateSystem(int i) { return i == 2; } public BigInteger getQ() { return q; } @Override // org.bouncycastle.math.ec.ECCurve public ECPoint getInfinity() { return this.infinity; } @Override // org.bouncycastle.math.ec.ECCurve public int getFieldSize() { return q.bitLength(); } @Override // org.bouncycastle.math.ec.ECCurve public ECFieldElement fromBigInteger(BigInteger bigInteger) { return new SecP224R1FieldElement(bigInteger); } @Override // org.bouncycastle.math.ec.ECCurve public ECPoint createRawPoint(ECFieldElement eCFieldElement, ECFieldElement eCFieldElement2, ECFieldElement[] eCFieldElementArr, boolean z) { return new SecP224R1Point(this, eCFieldElement, eCFieldElement2, eCFieldElementArr, z); } @Override // org.bouncycastle.math.ec.ECCurve public ECPoint createRawPoint(ECFieldElement eCFieldElement, ECFieldElement eCFieldElement2, boolean z) { return new SecP224R1Point(this, eCFieldElement, eCFieldElement2, z); } @Override // org.bouncycastle.math.ec.ECCurve public ECCurve cloneCurve() { return new SecP224R1Curve(); } public SecP224R1Curve() { super(q); this.infinity = new SecP224R1Point(this, null, null); this.a = fromBigInteger(new BigInteger(1, Hex.decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE"))); this.b = fromBigInteger(new BigInteger(1, Hex.decode("B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4"))); this.order = new BigInteger(1, Hex.decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D")); this.cofactor = BigInteger.valueOf(1L); this.coord = 2; } }