Parent topic:MPLAB® Harmony Crypto Library
int CRYPT_ECC_Free(
CRYPT_ECC_CTX* ecc
);
This function cleans up memory allocated for an ECC Context.
The context must have been initialized previously with a call to CRYPT_ECC_Initialize.
Parameters | Description |
---|---|
ecc | 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_ECC_CTX userA;
int ret;
ret = CRYPT_ECC_Initialize(&userA);
...
ret = CRYPT_ECC_Free(&userA);