package org.bouncycastle.crypto.params; import java.math.BigInteger; import org.bouncycastle.crypto.CipherParameters; /* loaded from: classes6.dex */ public class GOST3410Parameters implements CipherParameters { private BigInteger a; private BigInteger p; private BigInteger q; private GOST3410ValidationParameters validation; public int hashCode() { return (this.p.hashCode() ^ this.q.hashCode()) ^ this.a.hashCode(); } public GOST3410ValidationParameters getValidationParameters() { return this.validation; } public BigInteger getQ() { return this.q; } public BigInteger getP() { return this.p; } public BigInteger getA() { return this.a; } public boolean equals(Object obj) { if (!(obj instanceof GOST3410Parameters)) { return false; } GOST3410Parameters gOST3410Parameters = (GOST3410Parameters) obj; return gOST3410Parameters.getP().equals(this.p) && gOST3410Parameters.getQ().equals(this.q) && gOST3410Parameters.getA().equals(this.a); } public GOST3410Parameters(BigInteger bigInteger, BigInteger bigInteger2, BigInteger bigInteger3, GOST3410ValidationParameters gOST3410ValidationParameters) { this.a = bigInteger3; this.p = bigInteger; this.q = bigInteger2; this.validation = gOST3410ValidationParameters; } public GOST3410Parameters(BigInteger bigInteger, BigInteger bigInteger2, BigInteger bigInteger3) { this.p = bigInteger; this.q = bigInteger2; this.a = bigInteger3; } }