Skip to main content

encrypt_data_v2

Function encrypt_data_v2 

Source
pub fn encrypt_data_v2(buffer: &mut DequeBuffer, auth_key: &AuthKey)
Expand description

Encrypt buffer (in-place, with prepended header) using MTProto 2.0.

After this call buffer contains key_id || msg_key || ciphertext.