Parent topic:MPLABĀ® Harmony Crypto Library
int CRYPT_RSA_Initialize(
CRYPT_RSA_CTX* rsa
);
This function initializes the context used during public-key RSA encryption and decryption.
None.
Parameters | Description |
---|---|
rsa | Pointer to RSA context which saves state between calls. |
BAD_FUNC_ARG - An invalid pointer was passed to the function.
-1 - Unable to allocate the memory necessary for the key.
0 - An invalid pointer was not passed to the function.
CRYPT_RSA_CTX mcRsa;
int ret;
ret = CRYPT_RSA_Initialize(&mcRsa);