Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICryptoKeyInit2::loadASN1PrivateECKey ( P6BSTR pASN1)
pure virtual

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

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
pASN1[ in ] The private key represented in an ASN.1 structure.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedObject is in an incorrect state.
P6R::eInvalidArgASN1.pString is NULL or ASN1.length is zerp
P6R::eInvalidStatepRandom not set during call to initialize().
P6R::eFailAndExceptionOne of the parameters failed to load properly.