pub fn encrypt_message(
auth_key: &[u8; 256],
plaintext: &[u8],
admin: bool,
) -> Result<Vec<u8>, E2eError>Expand description
Encrypt a secret chat message blob.
plaintext is the fully serialized inner TL (DecryptedMessageLayer bytes
for layer 17 and above, or bare layer-8 service bytes for notify_layer).
admin is true when we initiated the chat.
Returns key_fingerprint (8, LE) || msg_key (16) || ciphertext.