ECGroup

Class representing an elliptic curve

Constructors

this
this(CurveGFp curve, PointGFp base_point, BigInt order, BigInt cofactor, string oid)

Construct Domain paramers from specified parameters

this
this(Vector!ubyte ber_data)

Decode a BER encoded ECC domain parameter set

this
this(OID domain_oid)

Create an EC domain by OID (or throw if unknown)

this
this(string pem_or_oid)

Create an EC domain from PEM encoding (as from PEM_encode), or from an OID name (eg "secp256r1", or "1.2.840.10045.3.1.7")

Members

Functions

BER_decode
void BER_decode(Vector!ubyte ber_data)
Undocumented in source. Be warned that the author may not have intended to support it.
DER_encode
Vector!ubyte DER_encode(ECGroupEncoding form)

Create the DER encoding of this domain

PEM_encode
string PEM_encode()

Return the PEM encoding (always in explicit form)

getBasePoint
const(PointGFp) getBasePoint()

Return domain parameter curve

getCofactor
const(BigInt) getCofactor()

Return the cofactor

getCurve
const(CurveGFp) getCurve()

Return domain parameter curve

getOid
string getOid()

Return the OID of these domain parameters

getOrder
const(BigInt) getOrder()

Return the order of the base point

initialized
bool initialized()
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(U rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(U other)
Undocumented in source. Be warned that the author may not have intended to support it.
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
ECGroup dup [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta