Function olm_sys::olm_group_encrypt [−][src]
pub unsafe extern "C" fn olm_group_encrypt(
session: *mut OlmOutboundGroupSession,
plaintext: *const u8,
plaintext_length: usize,
message: *mut u8,
message_length: usize
) -> usize
Encrypt some plain-text. Returns the length of the encrypted message or olm_error() on failure. On failure last_error will be set with an error code. The last_error will be OUTPUT_BUFFER_TOO_SMALL if the output buffer is too small.