what-the-bank/sources/org/bouncycastle/crypto/params/DSAParameters.java

54 lines
1.5 KiB
Java

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