[][src]Function grammers_crypto::encrypt_data_v2

pub fn encrypt_data_v2(plaintext: &[u8], auth_key: &AuthKey) -> Vec<u8>

This function implements the MTProto 2.0 algorithm for computing aes_key and aes_iv from auth_key and msg_key as specified