Stay organized with collections
Save and categorize content based on your preferences.
ECFieldFp
open class ECFieldFp : ECField
This immutable class defines an elliptic curve (EC) prime finite field.
Summary
Public constructors |
Creates an elliptic curve prime finite field with the specified prime p .
|
Public methods |
open Boolean |
Compares this prime finite field for equality with the specified object.
|
open Int |
Returns the field size in bits which is size of prime p for this prime finite field.
|
open BigInteger! |
Returns the prime p of this prime finite field.
|
open Int |
Returns a hash code value for this prime finite field.
|
Public constructors
ECFieldFp
ECFieldFp(p: BigInteger!)
Creates an elliptic curve prime finite field with the specified prime p
.
Exceptions |
java.lang.NullPointerException |
if p is null. |
java.lang.IllegalArgumentException |
if p is not positive. |
Public methods
equals
open fun equals(other: Any?): Boolean
Compares this prime finite field for equality with the specified object.
Parameters |
obj |
the object to be compared. |
Return |
Boolean |
true if obj is an instance of ECFieldFp and the prime value match, false otherwise. |
getFieldSize
open fun getFieldSize(): Int
Returns the field size in bits which is size of prime p for this prime finite field.
Return |
Int |
the field size in bits. |
getP
open fun getP(): BigInteger!
Returns the prime p
of this prime finite field.
hashCode
open fun hashCode(): Int
Returns a hash code value for this prime finite field.
Return |
Int |
a hash code value. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-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 2025-02-10 UTC."],[],[],null,["# ECFieldFp\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nECFieldFp\n=========\n\n```\nopen class ECFieldFp : ECField\n```\n\n|---|-----------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.security.spec.ECFieldFp](#) |\n\nThis immutable class defines an elliptic curve (EC) prime finite field.\n\nSummary\n-------\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [ECFieldFp](#ECFieldFp(java.math.BigInteger))`(`p:` `[BigInteger](../../math/BigInteger.html#)!`)` Creates an elliptic curve prime finite field with the specified prime `p`. |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` Compares this prime finite field for equality with the specified object. |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getFieldSize](#getFieldSize())`()` Returns the field size in bits which is size of prime p for this prime finite field. |\n| open [BigInteger](../../math/BigInteger.html#)! | [getP](#getP())`()` Returns the prime `p` of this prime finite field. |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashCode](#hashCode())`()` Returns a hash code value for this prime finite field. |\n\nPublic constructors\n-------------------\n\n### ECFieldFp\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nECFieldFp(p: BigInteger!)\n```\n\nCreates an elliptic curve prime finite field with the specified prime `p`.\n\n| Parameters ||\n|-----|--------------------------------------------------------|\n| `p` | [BigInteger](../../math/BigInteger.html#)!: the prime. |\n\n| Exceptions ||\n|--------------------------------------|-------------------------|\n| `java.lang.NullPointerException` | if `p` is null. |\n| `java.lang.IllegalArgumentException` | if `p` is not positive. |\n\nPublic methods\n--------------\n\n### equals\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun equals(other: Any?): Boolean\n```\n\nCompares this prime finite field for equality with the specified object.\n\n| Parameters ||\n|-------|----------------------------|\n| `obj` | the object to be compared. |\n\n| Return ||\n|------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if `obj` is an instance of ECFieldFp and the prime value match, false otherwise. |\n\n### getFieldSize\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getFieldSize(): Int\n```\n\nReturns the field size in bits which is size of prime p for this prime finite field.\n\n| Return ||\n|----------------------------------------------------------------------------|-------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the field size in bits. |\n\n### getP\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getP(): BigInteger!\n```\n\nReturns the prime `p` of this prime finite field.\n\n| Return ||\n|--------------------------------------------|------------|\n| [BigInteger](../../math/BigInteger.html#)! | the prime. |\n\n### hashCode\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun hashCode(): Int\n```\n\nReturns a hash code value for this prime finite field.\n\n| Return ||\n|----------------------------------------------------------------------------|--------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value. |"]]