pub unsafe extern "C" fn mbedtls_pk_free(ctx: *mut mbedtls_pk_context)
Expand description

\brief Free the components of a #mbedtls_pk_context.

\param ctx The context to clear. It must have been initialized. If this is \c NULL, this function does nothing.

\note For contexts that have been set up with mbedtls_pk_setup_opaque(), this does not free the underlying PSA key and you still need to call psa_destroy_key() independently if you want to destroy that key.