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. |