org.gudy.bouncycastle.math.ec
Class ECPoint.Fp
java.lang.Object
org.gudy.bouncycastle.math.ec.ECPoint
org.gudy.bouncycastle.math.ec.ECPoint.Fp
- Enclosing class:
- ECPoint
public static class ECPoint.Fp
- extends ECPoint
Elliptic curve points over Fp
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ECPoint.Fp
public ECPoint.Fp(ECCurve curve,
ECFieldElement x,
ECFieldElement y)
- Create a point which encodes with point compression.
- Parameters:
curve
- the curve to usex
- affine x co-ordinatey
- affine y co-ordinate
ECPoint.Fp
public ECPoint.Fp(ECCurve curve,
ECFieldElement x,
ECFieldElement y,
boolean withCompression)
- Create a point that encodes with or without point compresion.
- Parameters:
curve
- the curve to usex
- affine x co-ordinatey
- affine y co-ordinatewithCompression
- if true encode with point compression
getEncoded
public byte[] getEncoded()
- return the field element encoded with point compression. (S 4.3.6)
- Specified by:
getEncoded
in class ECPoint
add
public ECPoint add(ECPoint b)
- Specified by:
add
in class ECPoint
twice
public ECPoint twice()
- Specified by:
twice
in class ECPoint
subtract
public ECPoint subtract(ECPoint b)
- Specified by:
subtract
in class ECPoint
negate
public ECPoint negate()
- Specified by:
negate
in class ECPoint