NC_keymgmt_gen_cleanup() should clean up and free the key object generation context <i>genctx</i></p>

<p>OSSL_FUNC_keymgmt_load() creates a provider side key object based on a <i>reference</i> object with a size of <i>reference_sz</i> bytes, that only the provider knows how to interpret, but that may come from other operations. Outside the provider, this reference is simply an array of bytes.</p>

<p>At least one of OSSL_FUNC_keymgmt_new(), OSSL_FUNC_keymgmt_gen() and OSSL_FUNC_keymgmt_load() are mandatory