Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 771 Bytes

GUID-8DC6673E-CE98-4E8D-A1AE-181B81890754.md

File metadata and controls

48 lines (29 loc) · 771 Bytes

CRYPT_ECC_Free Function

Parent topic:MPLAB® Harmony Crypto Library

C

int CRYPT_ECC_Free(
    CRYPT_ECC_CTX* ecc
);

Description

This function cleans up memory allocated for an ECC Context.

Preconditions

The context must have been initialized previously with a call to CRYPT_ECC_Initialize.

Parameters

Parameters Description
ecc Pointer to context to clean up.

Returns

  • BAD_FUNC_ARG - An invalid pointer was passed to the function.

  • 0 - An invalid pointer was not passed to the function.

Remarks

None.

Example

CRYPT_ECC_CTX userA; 
int           ret;

ret = CRYPT_ECC_Initialize(&userA);
...
ret = CRYPT_ECC_Free(&userA);