Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICryptoKeyInit::loadRawPrivateDSAKey ( const P6UCHAR pP,
P6UINT32  pLength,
const P6UCHAR pQ,
P6UINT32  qLength,
const P6UCHAR pG,
P6UINT32  gLength,
const P6UCHAR pX,
P6UINT32  xLength 
)
pure virtual

This method loads the standard parts of a DSA (DSS) private key from a set of buffers.

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
pP[ in ] One of the DSA parameters, "the prime"
pLength[ in ] Contains the size in bytes of pP.
pQ[ in ] One of the DSA parameters, "the subprime"
qLength[ in ] Contains the size in bytes of pQ.
pG[ in ] One of the DSA parameters, "the base"
gLength[ in ] Contains the size in bytes of pG.
pX[ in ] The public key value, "the private key"
xLength[ in ] Contains the size in bytes of pX.
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.