38 lines
959 B
Java
38 lines
959 B
Java
|
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;
|
||
|
}
|
||
|
}
|