CurveGFpMontgomery

Undocumented in source.

Constructors

this
this(BigInt* p, BigInt* a, BigInt* b)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

curveMul
void curveMul(BigInt* z, const(BigInt)* x, const(BigInt)* y, SecureVector!word ws)

Montgomery multiplication/reduction Notes: z cannot alias x or y

curveSqr
void curveSqr(BigInt* z, const(BigInt)* x, SecureVector!word ws)

Montgomery squaring/reduction Notes: z cannot alias x

fromCurveRep
void fromCurveRep(BigInt* x, SecureVector!word ws)
Undocumented in source. Be warned that the author may not have intended to support it.
getA
const(BigInt) getA()
Undocumented in source. Be warned that the author may not have intended to support it.
getARep
const(BigInt) getARep()
Undocumented in source. Be warned that the author may not have intended to support it.
getB
const(BigInt) getB()
Undocumented in source. Be warned that the author may not have intended to support it.
getBRep
const(BigInt) getBRep()
Undocumented in source. Be warned that the author may not have intended to support it.
getP
const(BigInt) getP()
Undocumented in source. Be warned that the author may not have intended to support it.
getPWords
size_t getPWords()
Undocumented in source. Be warned that the author may not have intended to support it.
swap
void swap(CurveGFpRepr other_)
Undocumented in source. Be warned that the author may not have intended to support it.
toCurveRep
void toCurveRep(BigInt* x, SecureVector!word ws)
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.

Variables

m_ctx
BN_CTX* m_ctx;
Undocumented in source.
m_mont
BN_MONT_CTX* m_mont;
Undocumented in source.
m_p_bn
BIGNUM* m_p_bn;
Undocumented in source.
m_x_
BIGNUM* m_x_;
Undocumented in source.
m_y_
BIGNUM* m_y_;
Undocumented in source.
m_z_
BIGNUM* m_z_;
Undocumented in source.

Inherited Members

From CurveGFpRepr

getP
const(BigInt) getP()
Undocumented in source.
getA
const(BigInt) getA()
Undocumented in source.
getB
const(BigInt) getB()
Undocumented in source.
getPWords
size_t getPWords()
Undocumented in source.
getARep
const(BigInt) getARep()

Returns toCurveRep(getA())

getBRep
const(BigInt) getBRep()

Returns toCurveRep(getB())

toCurveRep
void toCurveRep(BigInt* x, SecureVector!word ws)
Undocumented in source.
fromCurveRep
void fromCurveRep(BigInt* x, SecureVector!word ws)
Undocumented in source.
curveMul
void curveMul(BigInt* z, const(BigInt)* x, const(BigInt)* y, SecureVector!word ws)
Undocumented in source.
curveSqr
void curveSqr(BigInt* z, const(BigInt)* x, SecureVector!word ws)
Undocumented in source.
normalize
void normalize(BigInt* x, SecureVector!word ws, size_t bound)
Undocumented in source. Be warned that the author may not have intended to support it.
toVector
Vector!char toVector()
Undocumented in source.
swap
void swap(CurveGFpRepr )
Undocumented in source.

Meta