public class EllipticCurve extends Object
ECField , ECFieldFp , ECFieldF2m
| Constructor and Description |
|---|
EllipticCurve(ECField field, BigInteger a, BigInteger b)
创建具有指定的椭圆场
field和系数
a和
b的椭圆曲线。
|
EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed)
创建具有指定椭圆域上的椭圆曲线
field ,系数
a和
b ,和
seed用于生成曲线。
|
public EllipticCurve(ECField field, BigInteger a, BigInteger b)
field和系数
a和
b的椭圆曲线。
field - 这个椭圆曲线结束的有限域。
a - 这个椭圆曲线的第一个系数。
b - 这个椭圆曲线的第二个系数。
NullPointerException如果-
field ,
a ,或
b为null。
IllegalArgumentException - 如果
a或
b不为空,而不在
field 。
public EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed)
field ,系数
a和
b ,和
seed用于生成曲线。
field - 这个椭圆曲线结束的有限域。
a - 这个椭圆曲线的第一个系数。
b - 这个椭圆曲线的第二个系数。
seed - 曲线生成期间用于稍后验证的字节。
复制该数组的内容以防止后续修改。
NullPointerException如果-
field ,
a ,或
b为null。
IllegalArgumentException - 如果
a或
b不为空,而不是在
field 。
public ECField getField()
field 。
field 。
public BigInteger getA()
a 。
a 。
public BigInteger getB()
b 。
b 。
public byte[] getSeed()
seed用于在曲线生成。
如果未指定,可能为null。
seed 。
每次调用此方法时,都会返回一个新数组。
public boolean equals(Object obj)
equals在
Object
obj - 要比较的对象。
obj是
obj的实例,并且字段A和B匹配,则为true,否则为false。
Object.hashCode() , HashMap
public int hashCode()
hashCode在
Object
(field.hashCode() << 6) + (a.hashCode() << 4) + (b.hashCode() << 2)
Object.equals(java.lang.Object) ,
System.identityHashCode(java.lang.Object)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.