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

48 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.crypto.params;
import org.bouncycastle.util.Arrays;
/* loaded from: classes6.dex */
public class DSAValidationParameters {
private int counter;
private byte[] seed;
private int usageIndex;
public int hashCode() {
return this.counter ^ Arrays.hashCode(this.seed);
}
public int getUsageIndex() {
return this.usageIndex;
}
public byte[] getSeed() {
return this.seed;
}
public int getCounter() {
return this.counter;
}
public boolean equals(Object obj) {
if (!(obj instanceof DSAValidationParameters)) {
return false;
}
DSAValidationParameters dSAValidationParameters = (DSAValidationParameters) obj;
if (dSAValidationParameters.counter != this.counter) {
return false;
}
return Arrays.areEqual(this.seed, dSAValidationParameters.seed);
}
public DSAValidationParameters(byte[] bArr, int i, int i2) {
this.seed = bArr;
this.counter = i;
this.usageIndex = i2;
}
public DSAValidationParameters(byte[] bArr, int i) {
this(bArr, i, -1);
}
}