Function olm_sys::olm_decrypt_max_plaintext_length [−][src]
pub unsafe extern "C" fn olm_decrypt_max_plaintext_length(
session: *mut OlmSession,
message_type: usize,
message: *mut c_void,
message_length: usize
) -> usize
The maximum number of bytes of plain-text a given message could decode to. The actual size could be different due to padding. The input message buffer is destroyed. Returns olm_error() on failure. If the message base64 couldn’t be decoded then olm_session_last_error() will be “INVALID_BASE64”. If the message is for an unsupported version of the protocol then olm_session_last_error() will be “BAD_MESSAGE_VERSION”. If the message couldn’t be decoded then olm_session_last_error() will be “BAD_MESSAGE_FORMAT”.