Function sequoia_openpgp_ffi::packet::key::pgp_key_into_key_pair [−][src]
#[no_mangle]
pub extern "C" fn pgp_key_into_key_pair(
errp: Option<&mut *mut Error>,
key: *mut Key
) -> *mut KeyPair
Expand description
Creates a new key pair from a Key packet with an unencrypted
C Declaration
pgp_key_pair_t
pgp_key_into_key_pair (pgp_error_t *errp,
pgp_key_t key);
secret key.
Errors
Fails if the secret key is missing, or encrypted.