类 LazyECPoint
- java.lang.Object
-
- network.nerve.core.crypto.LazyECPoint
-
public class LazyECPoint extends Object
A wrapper around ECPoint that delays decoding of the point for as long as possible. This is useful because point encode/decode in Bouncy Castle is quite slow especially on Dalvik, as it often involves decompression/recompression.
-
-
构造器概要
构造器 构造器 说明 LazyECPoint(org.bouncycastle.math.ec.ECCurve curve, byte[] bits)LazyECPoint(org.bouncycastle.math.ec.ECPoint point)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.bouncycastle.math.ec.ECPointadd(org.bouncycastle.math.ec.ECPoint b)booleanequals(Object o)booleanequals(org.bouncycastle.math.ec.ECPoint other)org.bouncycastle.math.ec.ECPointget()org.bouncycastle.math.ec.ECFieldElementgetAffineXCoord()org.bouncycastle.math.ec.ECFieldElementgetAffineYCoord()org.bouncycastle.math.ec.ECCurvegetCurve()org.bouncycastle.math.ec.ECPointgetDetachedPoint()byte[]getEncoded()byte[]getEncoded(boolean compressed)org.bouncycastle.math.ec.ECFieldElementgetX()org.bouncycastle.math.ec.ECFieldElementgetXCoord()org.bouncycastle.math.ec.ECFieldElementgetY()org.bouncycastle.math.ec.ECFieldElementgetYCoord()org.bouncycastle.math.ec.ECFieldElementgetZCoord(int index)org.bouncycastle.math.ec.ECFieldElement[]getZCoords()inthashCode()booleanisCompressed()booleanisInfinity()booleanisNormalized()booleanisValid()org.bouncycastle.math.ec.ECPointmultiply(BigInteger k)org.bouncycastle.math.ec.ECPointnegate()org.bouncycastle.math.ec.ECPointnormalize()org.bouncycastle.math.ec.ECPointscaleX(org.bouncycastle.math.ec.ECFieldElement scale)org.bouncycastle.math.ec.ECPointscaleY(org.bouncycastle.math.ec.ECFieldElement scale)org.bouncycastle.math.ec.ECPointsubtract(org.bouncycastle.math.ec.ECPoint b)org.bouncycastle.math.ec.ECPointthreeTimes()org.bouncycastle.math.ec.ECPointtimesPow2(int e)org.bouncycastle.math.ec.ECPointtwice()org.bouncycastle.math.ec.ECPointtwicePlus(org.bouncycastle.math.ec.ECPoint b)
-
-
-
方法详细资料
-
get
public org.bouncycastle.math.ec.ECPoint get()
-
getDetachedPoint
public org.bouncycastle.math.ec.ECPoint getDetachedPoint()
-
getEncoded
public byte[] getEncoded()
-
isInfinity
public boolean isInfinity()
-
timesPow2
public org.bouncycastle.math.ec.ECPoint timesPow2(int e)
-
getYCoord
public org.bouncycastle.math.ec.ECFieldElement getYCoord()
-
getZCoords
public org.bouncycastle.math.ec.ECFieldElement[] getZCoords()
-
isNormalized
public boolean isNormalized()
-
isCompressed
public boolean isCompressed()
-
multiply
public org.bouncycastle.math.ec.ECPoint multiply(BigInteger k)
-
subtract
public org.bouncycastle.math.ec.ECPoint subtract(org.bouncycastle.math.ec.ECPoint b)
-
isValid
public boolean isValid()
-
scaleY
public org.bouncycastle.math.ec.ECPoint scaleY(org.bouncycastle.math.ec.ECFieldElement scale)
-
getXCoord
public org.bouncycastle.math.ec.ECFieldElement getXCoord()
-
scaleX
public org.bouncycastle.math.ec.ECPoint scaleX(org.bouncycastle.math.ec.ECFieldElement scale)
-
equals
public boolean equals(org.bouncycastle.math.ec.ECPoint other)
-
negate
public org.bouncycastle.math.ec.ECPoint negate()
-
threeTimes
public org.bouncycastle.math.ec.ECPoint threeTimes()
-
getZCoord
public org.bouncycastle.math.ec.ECFieldElement getZCoord(int index)
-
getEncoded
public byte[] getEncoded(boolean compressed)
-
add
public org.bouncycastle.math.ec.ECPoint add(org.bouncycastle.math.ec.ECPoint b)
-
twicePlus
public org.bouncycastle.math.ec.ECPoint twicePlus(org.bouncycastle.math.ec.ECPoint b)
-
getCurve
public org.bouncycastle.math.ec.ECCurve getCurve()
-
normalize
public org.bouncycastle.math.ec.ECPoint normalize()
-
getY
public org.bouncycastle.math.ec.ECFieldElement getY()
-
twice
public org.bouncycastle.math.ec.ECPoint twice()
-
getAffineYCoord
public org.bouncycastle.math.ec.ECFieldElement getAffineYCoord()
-
getAffineXCoord
public org.bouncycastle.math.ec.ECFieldElement getAffineXCoord()
-
getX
public org.bouncycastle.math.ec.ECFieldElement getX()
-
-