[][src]Crate grammers_crypto

Re-exports

pub use auth_key::AuthKey;

Modules

aes
auth_key
factorize
rsa

Enums

DecryptionError

Functions

decrypt_data_v2

This method is the inverse of encrypt_data_v2.

decrypt_ige

Decrypt data using AES-IGE. Panics if the plaintext is not padded to 16 bytes.

encrypt_data_v2

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

encrypt_ige

Encrypt data using AES-IGE.

generate_key_data_from_nonce

Generate the AES key and initialization vector from the server nonce and the new client nonce. This is done after the DH exchange.