Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICryptoKeyInit2::loadRawPrivateRSAKey ( const P6UCHAR pN,
P6UINT32  nLength,
const P6UCHAR pD,
P6UINT32  dLength,
const P6UCHAR pE,
P6UINT32  eLength,
const P6UCHAR pP,
P6UINT32  pLength,
const P6UCHAR pQ,
P6UINT32  qLength,
const P6UCHAR pPrimeExpP,
P6UINT32  epLength,
const P6UCHAR pPrimeExpQ,
P6UINT32  eqLength,
const P6UCHAR pCRT,
P6UINT32  cLength 
)
pure virtual

This method loads the standard parts of a RSA 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
pN[ in ] The public modulus.
nLength[ in ] Contains the size in bytes of pN.
pD[ in ] The private exponent.
dLength[ in ] Contains the size in bytes of pd.
pE[ in ] The public exponent.
eLength[ in ] Contains the size in bytes of pE.
pP[ in ] One of the RSA parameters.
pLength[ in ] Contains the size in bytes of pP.
pQ[ in ] One of the RSA parameters.
qLength[ in ] Contains the size in bytes of pQ.
pPrimeExpP[ in ] Prime Exponent P
epLength[ in ] Contains the size in bytes of pPrimeExpP.
pPrimeExpQ[ in ] Prime Exponent Q
eqLength[ in ] Contains the size in bytes of pPrimeExpQ.
pCRT[ in ] CRT Coefficient
cLength[ in ] Contains the size in bytes of pCRT.
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.