#include <nitro/crypto.h>
s32 CRYPTO_RSA_EncryptInit(CRYPTORSAContext *context, CRYPTORSAEncryptInitParam *param);
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. |
Returns one of the following process results.
0 |
Initialization succeeded |
-1 |
Initialization failed |
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.
CRYPTO_RSA_Encrypt, CRYPTO_RSA_EncryptTerminate
2008/03/27 Initial version.
CONFIDENTIAL