public class LazyECPoint
extends java.lang.Object
Constructor and Description |
---|
LazyECPoint(org.bouncycastle.math.ec.ECCurve curve,
byte[] bits)
Construct a LazyECPoint from a public key.
|
LazyECPoint(org.bouncycastle.math.ec.ECPoint point,
boolean compressed)
Construct a LazyECPoint from an already decoded point.
|
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.math.ec.ECPoint |
add(org.bouncycastle.math.ec.ECPoint b) |
LazyECPoint |
compress()
Returns a compressed version of this elliptic curve point.
|
LazyECPoint |
decompress()
Returns a decompressed version of this elliptic curve point.
|
boolean |
equals(org.bouncycastle.math.ec.ECPoint other) |
boolean |
equals(java.lang.Object o) |
org.bouncycastle.math.ec.ECPoint |
get() |
org.bouncycastle.math.ec.ECFieldElement |
getAffineXCoord() |
org.bouncycastle.math.ec.ECFieldElement |
getAffineYCoord() |
org.bouncycastle.math.ec.ECCurve |
getCurve() |
org.bouncycastle.math.ec.ECPoint |
getDetachedPoint() |
byte[] |
getEncoded() |
byte[] |
getEncoded(boolean compressed) |
org.bouncycastle.math.ec.ECFieldElement |
getX() |
org.bouncycastle.math.ec.ECFieldElement |
getXCoord() |
org.bouncycastle.math.ec.ECFieldElement |
getY() |
org.bouncycastle.math.ec.ECFieldElement |
getYCoord() |
org.bouncycastle.math.ec.ECFieldElement |
getZCoord(int index) |
org.bouncycastle.math.ec.ECFieldElement[] |
getZCoords() |
int |
hashCode() |
boolean |
isCompressed() |
boolean |
isInfinity() |
boolean |
isNormalized() |
boolean |
isValid() |
org.bouncycastle.math.ec.ECPoint |
multiply(java.math.BigInteger k) |
org.bouncycastle.math.ec.ECPoint |
negate() |
org.bouncycastle.math.ec.ECPoint |
normalize() |
org.bouncycastle.math.ec.ECPoint |
scaleX(org.bouncycastle.math.ec.ECFieldElement scale) |
org.bouncycastle.math.ec.ECPoint |
scaleY(org.bouncycastle.math.ec.ECFieldElement scale) |
org.bouncycastle.math.ec.ECPoint |
subtract(org.bouncycastle.math.ec.ECPoint b) |
org.bouncycastle.math.ec.ECPoint |
threeTimes() |
org.bouncycastle.math.ec.ECPoint |
timesPow2(int e) |
org.bouncycastle.math.ec.ECPoint |
twice() |
org.bouncycastle.math.ec.ECPoint |
twicePlus(org.bouncycastle.math.ec.ECPoint b) |
public LazyECPoint(org.bouncycastle.math.ec.ECCurve curve, byte[] bits)
curve
- a curve the point is onbits
- public key bytespublic LazyECPoint(org.bouncycastle.math.ec.ECPoint point, boolean compressed)
point
- the wrapped pointcompressed
- true if the represented public key is compressedpublic LazyECPoint compress()
ECKey
class docs for a discussion of point compression.public LazyECPoint decompress()
ECKey
class docs for a discussion of point compression.public org.bouncycastle.math.ec.ECPoint get()
public byte[] getEncoded()
public org.bouncycastle.math.ec.ECPoint getDetachedPoint()
public boolean isInfinity()
public org.bouncycastle.math.ec.ECPoint timesPow2(int e)
public org.bouncycastle.math.ec.ECFieldElement getYCoord()
public org.bouncycastle.math.ec.ECFieldElement[] getZCoords()
public boolean isNormalized()
public boolean isCompressed()
public org.bouncycastle.math.ec.ECPoint multiply(java.math.BigInteger k)
public org.bouncycastle.math.ec.ECPoint subtract(org.bouncycastle.math.ec.ECPoint b)
public boolean isValid()
public org.bouncycastle.math.ec.ECPoint scaleY(org.bouncycastle.math.ec.ECFieldElement scale)
public org.bouncycastle.math.ec.ECFieldElement getXCoord()
public org.bouncycastle.math.ec.ECPoint scaleX(org.bouncycastle.math.ec.ECFieldElement scale)
public boolean equals(org.bouncycastle.math.ec.ECPoint other)
public org.bouncycastle.math.ec.ECPoint negate()
public org.bouncycastle.math.ec.ECPoint threeTimes()
public org.bouncycastle.math.ec.ECFieldElement getZCoord(int index)
public byte[] getEncoded(boolean compressed)
public org.bouncycastle.math.ec.ECPoint add(org.bouncycastle.math.ec.ECPoint b)
public org.bouncycastle.math.ec.ECPoint twicePlus(org.bouncycastle.math.ec.ECPoint b)
public org.bouncycastle.math.ec.ECCurve getCurve()
public org.bouncycastle.math.ec.ECPoint normalize()
public org.bouncycastle.math.ec.ECFieldElement getY()
public org.bouncycastle.math.ec.ECPoint twice()
public org.bouncycastle.math.ec.ECFieldElement getAffineYCoord()
public org.bouncycastle.math.ec.ECFieldElement getAffineXCoord()
public org.bouncycastle.math.ec.ECFieldElement getX()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object