Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISign2::signRSA ( P6BSTR pInData,
P6BSTR pSignature 
)
pure virtual

This function uses an RSA private key to encrypt the pInData to generate an RSA signature.

The pInData is typically the output of some type of a message digest.

Parameters
pInData[ in ] Generate a signature for this input data.
pSignature[ out ] Pointer to where to copy the signature value.
Returns
SuccessP6R::eOk 
FailureeNotInitializedA successful call to initialize was not made before this call.
eInvalidArgOne of the parameters is NULL.
eTooSmallThe pOutData buffer is too small to contain the generated value.
eMissingKeysetKey must be called before this function.
eWrongKeyClassPrivate keys only can sign data.
eWrongKeyTypePrevious call to setKey() was not an RSA key.
eFailAndExceptionThe signature calculation failed. Exception record provides detailed error info.