kz.gamma.hardware.crypto.software.ec
Class ECPoint.F2m

java.lang.Object
  extended by kz.gamma.hardware.crypto.software.ec.ECPoint
      extended by kz.gamma.hardware.crypto.software.ec.ECPoint.F2m
Enclosing class:
ECPoint

public static class ECPoint.F2m
extends ECPoint

Elliptic curve points over F2m


Nested Class Summary
 
Nested classes/interfaces inherited from class kz.gamma.hardware.crypto.software.ec.ECPoint
ECPoint.F2m, ECPoint.Fp
 
Field Summary
 
Fields inherited from class kz.gamma.hardware.crypto.software.ec.ECPoint
curve, multiplier, preCompInfo, withCompression, x, y
 
Constructor Summary
ECPoint.F2m(ECCurve curve)
          Deprecated. use ECCurve.getInfinity() Constructor for point at infinity
ECPoint.F2m(ECCurve curve, ECFieldElement x, ECFieldElement y)
           
ECPoint.F2m(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression)
           
 
Method Summary
 ECPoint add(ECPoint b)
           
 ECPoint.F2m addSimple(ECPoint.F2m b)
          Adds another ECPoints.F2m to this without checking if both points are on the same curve.
private static void checkPoints(ECPoint a, ECPoint b)
          Check, if two ECPoints can be added or subtracted.
 byte[] getEncoded()
           
 ECPoint negate()
           
 ECPoint subtract(ECPoint b)
           
 ECPoint.F2m subtractSimple(ECPoint.F2m b)
          Subtracts another ECPoints.F2m from this without checking if both points are on the same curve.
 ECPoint twice()
           
 
Methods inherited from class kz.gamma.hardware.crypto.software.ec.ECPoint
assertECMultiplier, equals, getCurve, getX, getY, hashCode, isCompressed, isInfinity, multiply, setPreCompInfo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECPoint.F2m

public ECPoint.F2m(ECCurve curve,
                   ECFieldElement x,
                   ECFieldElement y)
Parameters:
curve - base curve
x - x point
y - y point

ECPoint.F2m

public ECPoint.F2m(ECCurve curve,
                   ECFieldElement x,
                   ECFieldElement y,
                   boolean withCompression)
Parameters:
curve - base curve
x - x point
y - y point
withCompression - true if encode with point compression.

ECPoint.F2m

public ECPoint.F2m(ECCurve curve)
Deprecated. use ECCurve.getInfinity() Constructor for point at infinity

Method Detail

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in class ECPoint

checkPoints

private static void checkPoints(ECPoint a,
                                ECPoint b)
Check, if two ECPoints can be added or subtracted.

Parameters:
a - The first ECPoint to check.
b - The second ECPoint to check.
Throws:
java.lang.IllegalArgumentException - if a and b cannot be added.

add

public ECPoint add(ECPoint b)
Specified by:
add in class ECPoint

addSimple

public ECPoint.F2m addSimple(ECPoint.F2m b)
Adds another ECPoints.F2m to this without checking if both points are on the same curve. Used by multiplication algorithms, because there all points are a multiple of the same point and hence the checks can be omitted.

Parameters:
b - The other ECPoints.F2m to add to this.
Returns:
this + b

subtract

public ECPoint subtract(ECPoint b)
Specified by:
subtract in class ECPoint

subtractSimple

public ECPoint.F2m subtractSimple(ECPoint.F2m b)
Subtracts another ECPoints.F2m from this without checking if both points are on the same curve. Used by multiplication algorithms, because there all points are a multiple of the same point and hence the checks can be omitted.

Parameters:
b - The other ECPoints.F2m to subtract from this.
Returns:
this - b

twice

public ECPoint twice()
Specified by:
twice in class ECPoint

negate

public ECPoint negate()
Specified by:
negate in class ECPoint


Copyright © 2013 Gamma Technologies. All Rights Reserved.