Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICryptoKeyInit2::loadRawPrivateECKey ( P6ECCURVE  curveId,
const P6UCHAR pD,
P6UINT32  dLength 
)
pure virtual

This method loads the standard parts of an Eliptical Curve (EC) private key from a buffer.

This function only handles built-in curves that have a name. Calling this function requires that the p6cryptokey component was initialized with a p6IRandom component which is uses to generate part of the keys meta-data.

Parameters
curveId[ in ] A numeric code representiation of an eliptic curve (e.g., CURVE_SECP112R1 for "secp112r1")
pD[ in ] The private key has a BIG Integer value that we represent as a byte stream
dLength[ in ] Contains the size in bytes of pD.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedObject is in an incorrect state.
P6R::eInvalidArgOne of the parameters is NULL.
P6R::eInvalidStatepRandom not set during call to initialize().
P6R::eFailAndExceptionOne of the parameters failed to load properly.