RSADecrypt_PKCSv15

Carries out the decryption using the v1.5 version of the PKCS#1 standard.

Syntax

IppStatus ippsRSADecrypt_PKCSv15(const Ipp8u* pSrc, Ipp8u* pDst, Ipp32u* pDstLen, IppsRSAState* pRSA);

Parameters

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.

Description

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].

Note iconNote

If an empty message is encrypted by the RSAEncrypt_PKCSv15 function, RSADecrypt_PKCSv15 returns and empty sting, that is, *pDstLen==0.

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 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:
  • The value to be decrypted exceeds the RSA modulus.

  • Internally applied EME-PKCS-v1.5 procedure returns a decryption error (see [PKCS 1.2.1] for details).


Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.