Crate grammers_crypto
source ·Re-exports
pub use auth_key::AuthKey;
Modules
Macros
Enums
Functions
- This method is the inverse of
encrypt_data_v2
. - Decrypt data using AES-IGE. Panics if the plaintext is not padded to 16 bytes.
- This function implements the MTProto 2.0 algorithm for computing
aes_key
andaes_iv
fromauth_key
andmsg_key
as specified - Encrypt data using AES-IGE.
- Generate the AES key and initialization vector from the server nonce and the new client nonce. This is done after the DH exchange.