CRYPTO_RSA_DecryptInit

Syntax


#include <nitro/crypto.h>

s32 CRYPTO_RSA_DecryptInit(CRYPTORSAContext *context, CRYPTORSADecryptInitParam *param);
		

Arguments

context Specifies the address of the context structure for internal use.
param Specifies the address of the structure for specifying the required settings for RSA encryption.

Return Values

Returns one of the following process results.

0 Initialization succeeded
-1 Initialization failed

Description

Performs the initialization for decryption using the RSA algorithm, and sets the private key used for decryption.

The settings that are required for this initialization must be specified in the members of the param argument. For details, refer to CRYPTORSADecryptInitParam.

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

See Also

CRYPTO_RSA_Decrypt, CRYPTO_RSA_DecryptTerminate

Revision History

2008/03/27 Initial version.


CONFIDENTIAL