Constructor and Description |
---|
ECFieldFp(BigInteger p)
Creates an elliptic curve prime finite field
with the specified prime
p . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares this prime finite field for equality with the
specified object.
|
int |
getFieldSize()
Returns the field size in bits which is size of prime p
for this prime finite field.
|
BigInteger |
getP()
Returns the prime
p of this prime finite field. |
int |
hashCode()
Returns a hash code value for this prime finite field.
|
public ECFieldFp(BigInteger p)
p
.p
- the prime.NullPointerException
- if p
is null.IllegalArgumentException
- if p
is not positive.public int getFieldSize()
getFieldSize
in interface ECField
public BigInteger getP()
p
of this prime finite field.public boolean equals(Object obj)
equals
in class Object
obj
- the object to be compared.obj
is an instance
of ECFieldFp and the prime value match, false otherwise.Object.hashCode()
,
HashMap
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.