CRYPTO_RSA_Decrypt

Syntax


#include <nitro/crypto.h>

s32 CRYPTO_RSA_Decrypt(CRYPTORSAContext *context, CRYPTORSADecryptParam *param);
		

Arguments

context Specifies the address of the CRYPTORSAContext structure that was initialized by the CRYPTO_RSA_DecryptInit function.
param Specifies the address of the structure for specifying strings and other data for RSA encryption.

Return Values

Returns one of the following process results.

Positive number Number of strings that were written to the output buffer (indicates that the decryption succeeded).
-1 Indicates that encryption failed.

Description

Performs decryption using the RSA algorithm.
The CRYPTO_RSA_DecryptInit function must be run before running cryptography operations with this function. In addition, the CRYPTO_RSA_DecryptTerminate function must be run when cryptography operations have completed.

The information required for decryption, such as the string to be decrypted and the output destination, must be specified in the members of the param argument. For details, refer to CRYPTORSADecryptParam.

For detailed information on RSA encryption, see RSA Encryption Overview.

See Also

CRYPTO_RSA_DecryptInit, CRYPTO_RSA_DecryptTerminate

Revision History

2008/04/02 Changed the return values (when successful, the function now returns the number of strings that were output).
2008/03/27 Initial version.


CONFIDENTIAL