public class ECFieldFp
extends Object implements ECField
| java.lang.Object | |
| ↳ | java.security.spec.ECFieldFp |
这个不可变类定义了一个椭圆曲线(EC)素数有限域。
也可以看看:
Public constructors |
|
|---|---|
ECFieldFp(BigInteger p) 用指定的素数 |
|
Public methods |
|
|---|---|
boolean |
equals(Object obj) 将这个素数有限域与指定对象进行相等比较。 |
int |
getFieldSize() 返回此素数有限域的素数p的字段大小。 |
BigInteger |
getP() 返回此素数有限域的素数 |
int |
hashCode() 返回此素数有限域的哈希码值。 |
Inherited methods |
|
|---|---|
java.lang.Object
|
|
java.security.spec.ECField
|
|
ECFieldFp (BigInteger p)
用指定的素数 p创建一个椭圆曲线素数有限域。
| Parameters | |
|---|---|
p |
BigInteger: the prime. |
| Throws | |
|---|---|
NullPointerException |
if p is null. |
IllegalArgumentException |
if p is not positive. |
boolean equals (Object obj)
将这个素数有限域与指定对象进行相等比较。
| Parameters | |
|---|---|
obj |
Object: the object to be compared. |
| Returns | |
|---|---|
boolean |
true if obj is an instance of ECFieldFp and the prime value match, false otherwise. |
int getFieldSize ()
返回此素数有限域的素数p的字段大小。
| Returns | |
|---|---|
int |
the field size in bits. |