CRYPTO_RSA_EncryptInit

Syntax


#include <nitro/crypto.h>

s32 CRYPTO_RSA_EncryptInit(CRYPTORSAContext *context, CRYPTORSAEncryptInitParam *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 encryption using the RSA algorithm, and sets the public key used for encryption.

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

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

See Also

CRYPTO_RSA_Encrypt, CRYPTO_RSA_EncryptTerminate

Revision History

2008/03/27 Initial version.


CONFIDENTIAL