Function olm_sys::olm_group_decrypt_max_plaintext_length
source · [−]pub unsafe extern "C" fn olm_group_decrypt_max_plaintext_length(
session: *mut OlmInboundGroupSession,
message: *mut u8,
message_length: usize
) -> usize
Expand description
Get an upper bound on the number of bytes of plain-text the decrypt method will write for a given input message length. The actual size could be different due to padding.
The input message buffer is destroyed.
Returns olm_error() on failure.