export_private_key
ret = export_private_key(file, NULL, &(kp.priv_key), RAWBIN);
ret = export_private_key(file, kname, &(kp.priv_key), DOTH);