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
Success | P6R::eOk | |
Failure | eNotInitialized | A successful call to initialize was not made before this call. |
eInvalidArg | One of the parameters is NULL. |
eTooSmall | The pOutData buffer is too small to contain the generated value. |
eMissingKey | setKey must be called before this function. |
eWrongKeyClass | Private keys only can sign data. |
eWrongKeyType | Previous call to setKey() was not an RSA key. |
eFailAndException | The signature calculation failed. Exception record provides detailed error info. |