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

Parameters Description
rsa Pointer to context to clean up.

Returns

Remarks

None.

Example

CRYPT_RSA_CTX mcRsa;
int           ret;

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