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

This method loads the standard parts of an Eliptical Curve (EC) public 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")
pQ[ in ] EC point represented as a byte stream
qLength[ in ] Contains the size in bytes of pQ.
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.