Visible to Intel only — GUID: GUID-6A823E21-D114-45E7-9AD0-C5F747EF6D8D
Visible to Intel only — GUID: GUID-6A823E21-D114-45E7-9AD0-C5F747EF6D8D
RSA_Decrypt
Performs the RSA decryption operation.
IppStatus ippsRSA_Decrypt(const IppsBigNumState* pCtxt, IppsBigNumState* pPtxt, const IppsRSAPrivateKeyState* pKey, Ipp8u* pScratchBuffer);
ippcp.h
pCtxt |
Pointer to the IppsBigNumState context of the ciphertext. |
pPtxt |
Pointer to the IppsBigNumState context of the plaintext. |
pKey |
Pointer to the IppsRSAPrivateKeyState context. |
pScratchBuffer |
Pointer to the scratch buffer of size not less than returned by the RSA_GetBufferSizePrivateKey function. |
The function performs the RSA encryption operation, that is, the RSA operation on a private key.
ippStsNoErr |
Indicates no error. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers is NULL. |
ippStsContextMatchErr |
Indicates an error condition if the context parameter does not match the operation. |
ippStsIncompleteContextErr |
Indicates an error condition if the private key is not set up.
NOTE:
While you can set up the type 1 private key in a call to RSA_SetPrivateKeyType1, you can set up the type 2 private key in a call to either RSA_SetPrivateKeyType2 or RSA_GenerateKeys. |
ippStsOutOfRangeErr |
Indicates an error condition if the big number specified by pCtxt is not positive or greater than the RSA modulus. |
ippStsSizeErr |
Indicates an error condition if the big number specified by pPtxt is not sufficient to hold the result. |
Did you find the information on this page useful?
Feedback Message
Characters remaining: