Crate grammers_crypto
source · [−]Re-exports
pub use auth_key::AuthKey;
Modules
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
and aes_iv
from auth_key
and msg_key
as specifiedEncrypt 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.