Parent topic:MPLABĀ® Harmony Crypto Library
int CRYPT_RSA_Free(
CRYPT_RSA_CTX* rsa
);
This function releases the memory used during RSA processing for storing the public/private key.
The context must have been set up previously with a call to CRYPT_RSA_Initialize.
Parameters | Description |
---|---|
rsa | Pointer to context to clean up. |
BAD_FUNC_ARG - An invalid pointer was passed to the function.
0 - An invalid pointer was not passed to the function.
None.
CRYPT_RSA_CTX mcRsa;
int ret;
ret = CRYPT_RSA_Initialize(&mcRsa);
ret = CRYPT_RSA_Free(&mcRsa);