what-the-bank/sources/org/bouncycastle/math/field/PrimeField.java

38 lines
959 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.math.field;
import java.math.BigInteger;
/* loaded from: classes6.dex */
class PrimeField implements FiniteField {
protected final BigInteger characteristic;
@Override // org.bouncycastle.math.field.FiniteField
public int getDimension() {
return 1;
}
public int hashCode() {
return this.characteristic.hashCode();
}
@Override // org.bouncycastle.math.field.FiniteField
public BigInteger getCharacteristic() {
return this.characteristic;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof PrimeField) {
return this.characteristic.equals(((PrimeField) obj).characteristic);
}
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
public PrimeField(BigInteger bigInteger) {
this.characteristic = bigInteger;
}
}