Performs the RSA decryption operation.
IppStatus ippsRSADecrypt(IppsBigNumState* pX, IppsBigNumState* pY, IppsRSAState* pCtx);
pX |
Ppointer to the IppsBigNumState context of the ciphertext. |
pY |
Pointer to the IppsBigNumState context of the plaintext. |
pCtx |
Pointer to the IppsRSAState context. |
This function is declared in the ippcp.h file. The function performs the RSA encryption operation.
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. |
ippStsInvalidCryptoKeyErr |
Indicates an error condition if the RSA context has not been properly set up for the operation. |
ippStsOutOfRangeErr |
Indicates an error condition if: length of the Big Number specified by pX is too big or length of the Big Number specified by pY is too small. |
The example below illustrates the use of RSA primitives. The example uses the BigNumber class and functions creating some cryptographic contexts, whose source code can be found in Appendix B.
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.