Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 797 Bytes

GUID-BA9B48C9-F2B9-4A38-B6C8-E78A41003D02.md

File metadata and controls

47 lines (28 loc) · 797 Bytes

CRYPT_RSA_Free Function

Parent topic:MPLAB® Harmony Crypto Library

C

int CRYPT_RSA_Free(
    CRYPT_RSA_CTX* rsa
);

Description

This function releases the memory used during RSA processing for storing the public/private key.

Preconditions

The context must have been set up previously with a call to CRYPT_RSA_Initialize.

Parameters

Parameters Description
rsa 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_RSA_CTX mcRsa;
int           ret;

ret = CRYPT_RSA_Initialize(&mcRsa);
ret = CRYPT_RSA_Free(&mcRsa);