1.35 CRYPT_RSA_Free Function

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

ParametersDescription
rsaPointer 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);