ECFieldFp
Stay organized with collections
Save and categorize content based on your preferences.
This immutable class defines an elliptic curve (EC) prime
finite field.
Public Constructor Summary
|
ECFieldFp(BigInteger p)
Creates an elliptic curve prime finite field
with the specified prime p .
|
Public Method Summary
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.
|
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals( Object obj)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long timeout, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long timeout)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
Public Constructors
public
ECFieldFp
(BigInteger p)
Creates an elliptic curve prime finite field
with the specified prime p
.
Public Methods
public
boolean
equals
(Object obj)
Compares this prime finite field for equality with the
specified object.
Parameters
obj |
the object to be compared. |
Returns
- true if
obj
is an instance
of ECFieldFp and the prime value match, false otherwise.
public
int
getFieldSize
()
Returns the field size in bits which is size of prime p
for this prime finite field.
public
BigInteger
getP
()
Returns the prime p
of this prime finite field.
public
int
hashCode
()
Returns a hash code value for this prime finite field.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["`ECFieldFp` represents an elliptic curve prime finite field defined by a prime number `p`."],["It provides methods to get the prime `p`, the field size in bits, and perform equality checks."],["It is immutable, meaning its value cannot be changed after creation."],["This class is part of the Java security package and is used in elliptic curve cryptography."],["A constructor is provided to create an `ECFieldFp` instance with a specified prime."]]],["The `ECFieldFp` class defines an immutable elliptic curve prime finite field. It can be created using a specified prime `p`. Key actions include: creating an instance with `ECFieldFp(BigInteger p)`, getting the prime `p` with `getP()`, determining the field size in bits with `getFieldSize()`, and checking equality with another object using `equals(Object obj)`. Additionally, a hash code for the field can be retrieved through `hashCode()`.\n"]]