Visible to Intel only — GUID: GUID-DE7B4C52-DF79-4BF6-8ECD-2F72A1A7BC23
Visible to Intel only — GUID: GUID-DE7B4C52-DF79-4BF6-8ECD-2F72A1A7BC23
RSA_Decrypt
Performs the RSA decryption operation.
Syntax
IppStatus ippsRSA_Decrypt(const IppsBigNumState* pCtxt, IppsBigNumState* pPtxt, const IppsRSAPrivateKeyState* pKey, Ipp8u* pScratchBuffer);
Include Files
ippcp.h
Parameters
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. |
Description
The function performs the RSA encryption operation, that is, the RSA operation on a private key.
Return Values
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. |
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. |
Related Information