Carries out the decryption using the v1.5 version of the PKCS#1 standard.
IppStatus ippsRSADecrypt_PKCSv15(const Ipp8u* pSrc, Ipp8u* pDst, Ipp32u* pDstLen, IppsRSAState* pRSA);
pSrc |
Pointer to the cyphertext to be decrypted. |
pDst |
Pointer to the output text message. |
pDstLen |
Pointer to the length (in bytes) of the decrypted message. |
pRSA |
Pointer to the properly initialized IppsRSAState context. |
This function is declared in the ippcp.h file. The function carries out the RSA decryption using the private key according to the v1.5 version of the PKCS#1 standard, defined in [PKCS 1.2.1].
If an empty message is encrypted by the RSAEncrypt_PKCSv15 function, RSADecrypt_PKCSv15 returns and empty sting, that is, *pDstLen==0.
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 RSA 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. |
ippStsSizeErr |
Indicates an error condition if the length n of the RSA modulus is too small, that is, n < 11. |
ippStsPaddingErr |
Indicates an error condition
in decryption that occurs in cases as follows:
|
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.