ECField
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
ECFieldF2m |
This immutable class defines an elliptic curve (EC)
characteristic 2 finite field. |
ECFieldFp |
This immutable class defines an elliptic curve (EC) prime
finite field. |
|
This interface represents an elliptic curve (EC) finite field.
All specialized EC fields must implements this interface.
Public Methods
public
abstract
int
getFieldSize
()
Returns the field size in bits. Note: For prime finite
field ECFieldFp, size of prime p in bits is returned.
For characteristic 2 finite field ECFieldF2m, m is returned.
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."],[[["\u003cp\u003e\u003ccode\u003eECField\u003c/code\u003e represents an elliptic curve's finite field, which must be implemented by all specialized EC fields.\u003c/p\u003e\n"],["\u003cp\u003eTwo known subclasses, \u003ccode\u003eECFieldF2m\u003c/code\u003e and \u003ccode\u003eECFieldFp\u003c/code\u003e, define characteristic 2 and prime finite fields, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method, \u003ccode\u003egetFieldSize()\u003c/code\u003e, returns the field size in bits, representing either the size of the prime 'p' or 'm' depending on the field type.\u003c/p\u003e\n"]]],["The `ECField` interface represents an elliptic curve (EC) finite field, which all specialized EC fields must implement. It defines a single method, `getFieldSize()`, which returns the field's size in bits. For prime finite fields (`ECFieldFp`), this is the size of the prime, and for characteristic 2 finite fields (`ECFieldF2m`), it is the value 'm'. These classes `ECFieldFp` and `ECFieldF2m` are known indirect subclasses of the interface.\n"],null,["# ECField\n\npublic interface **ECField** \n\n|---|---|---|\n| Known Indirect Subclasses [ECFieldF2m](../../../../reference/java/security/spec/ECFieldF2m.html), [ECFieldFp](../../../../reference/java/security/spec/ECFieldFp.html) |------------------------------------------------------------------------|------------------------------------------------------------------------------------| | [ECFieldF2m](../../../../reference/java/security/spec/ECFieldF2m.html) | This immutable class defines an elliptic curve (EC) characteristic 2 finite field. | | [ECFieldFp](../../../../reference/java/security/spec/ECFieldFp.html) | This immutable class defines an elliptic curve (EC) prime finite field. | |||\n\nThis interface represents an elliptic curve (EC) finite field.\nAll specialized EC fields must implements this interface. \n\n##### See Also\n\n- [ECFieldFp](../../../../reference/java/security/spec/ECFieldFp.html)\n- [ECFieldF2m](../../../../reference/java/security/spec/ECFieldF2m.html) \n\n### Public Method Summary\n\n|--------------|------------------------------------------------------------------------------------------------------------------------|\n| abstract int | [getFieldSize](../../../../reference/java/security/spec/ECField.html#getFieldSize())() Returns the field size in bits. |\n\nPublic Methods\n--------------\n\n#### public abstract int\n**getFieldSize**\n()\n\nReturns the field size in bits. Note: For prime finite\nfield ECFieldFp, size of prime p in bits is returned.\nFor characteristic 2 finite field ECFieldF2m, m is returned. \n\n##### Returns\n\n- the field size in bits."]]