Function sequoia_openpgp_ffi::serialize::pgp_encryptor_new [−][src]
#[no_mangle]
pub extern "C" fn pgp_encryptor_new<'a>(
errp: Option<&mut *mut Error>,
inner: *mut Message<'a>,
passwords: Option<&*const c_char>,
passwords_len: size_t,
recipients: Option<&*mut Recipient<'a>>,
recipients_len: size_t,
cipher_algo: u8
) -> *mut Message<'a>
Expand description
Creates a new encryptor.
C Declaration
pgp_message_t
pgp_encryptor_new (pgp_error_t *errp,
pgp_message_t inner,
const char **passwords,
size_t passwords_len,
pgp_recipient_t *recipients,
size_t recipients_len,
uint8_t cipher_algo);
The stream will be encrypted using a generated session key, which will be encrypted using the given passwords, and all encryption-capable subkeys of the given Certs.
The recipients are consumed.
The stream is encrypted using cipher_algo
. Pass 0 for the
default (which is what you usually want).