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

38 lines
933 B
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 DHValidationParameters {
private int counter;
private byte[] seed;
public int hashCode() {
return this.counter ^ Arrays.hashCode(this.seed);
}
public byte[] getSeed() {
return this.seed;
}
public int getCounter() {
return this.counter;
}
public boolean equals(Object obj) {
if (!(obj instanceof DHValidationParameters)) {
return false;
}
DHValidationParameters dHValidationParameters = (DHValidationParameters) obj;
if (dHValidationParameters.counter != this.counter) {
return false;
}
return Arrays.areEqual(this.seed, dHValidationParameters.seed);
}
public DHValidationParameters(byte[] bArr, int i) {
this.seed = bArr;
this.counter = i;
}
}