PointGFp

This class represents one point on a curve of GF(p)

Constructors

this
this(CurveGFp curve)

Construct the zero point

this
this(PointGFp other)

Move Constructor

this
this(CurveGFp curve, BigInt x, BigInt y)

Construct a point from its affine coordinates

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

CompressionType
alias CompressionType = ubyte
Undocumented in source.
mutable
alias mutable = SecureVector!word*
Undocumented in source.

Enums

UNCOMPRESSED
anonymousenum UNCOMPRESSED
Undocumented in source.

Functions

getAffineX
BigInt getAffineX()

get affine x coordinate

getAffineY
BigInt getAffineY()

get affine y coordinate

getCurve
const(CurveGFp) getCurve()

Return base curve of this point

isZero
bool isZero()

Is this the point at infinity?

move
PointGFp move()
Undocumented in source. Be warned that the author may not have intended to support it.
negate
PointGFp negate()

Negate this point

onTheCurve
bool onTheCurve()

Checks whether the point is to be found on the underlying curve; used to prevent fault attacks.

opAssign
PointGFp opAssign(PointGFp other)

Move Assignment

opBinary
PointGFp opBinary(BigInt scalar)

Multiplication Operator

opBinary
PointGFp opBinary(PointGFp rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
PointGFp opBinary(PointGFp rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
PointGFp opBinary(PointGFp point)
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(PointGFp rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(PointGFp other)

Equality operator

opOpAssign
void opOpAssign(PointGFp rhs)

+= Operator

opOpAssign
void opOpAssign(PointGFp rhs)

-= Operator

opOpAssign
void opOpAssign(BigInt scalar)

*= Operator

opUnary
PointGFp opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
swap
void swap(PointGFp other)

swaps the states of this and other, does not throw!

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
toVector
Vector!char toVector()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

dup
PointGFp dup [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
m_ws_ref
SecureVector!word* m_ws_ref [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

multiExponentiate
PointGFp multiExponentiate(PointGFp p1, BigInt z1, PointGFp p2, BigInt z2)

Multiexponentiation

Variables

m_coord_x
BigInt m_coord_x;
m_coord_y
BigInt m_coord_y;
m_coord_z
BigInt m_coord_z;
Undocumented in source.
m_curve
CurveGFp m_curve;
Undocumented in source.
m_ws
SecureVector!word m_ws;
Undocumented in source.

Meta