CurveGFpNIST

Undocumented in source.

Constructors

this
this(size_t p_bits, BigInt* a, BigInt* b)
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.
getPWords
size_t getPWords()
Undocumented in source. Be warned that the author may not have intended to support it.
maxRedcSubstractions
size_t maxRedcSubstractions()
Undocumented in source.
redc
void redc(BigInt* x, SecureVector!word ws)
Undocumented in source.
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.

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