Implementation of ckmc_export_wrapped_key