Expand description
Fast AES-256-IGE, AES-256-CTR and MTProto 2.0 message packing for Telegram clients.
The same code also builds the warpcrypto Python extension (behind the python feature).
Structs§
- Ctr256
- AES-256-CTR with the key expanded once, for a stream processed piece by piece.
- Message
- A decrypted MTProto message.
Enums§
- Error
- Why an operation was rejected.
Functions§
- ctr256
- AES-256-CTR encrypts or decrypts
datain place. - ige256_
decrypt - AES-256-IGE decrypts
datain place.data.len()must be a multiple of 16. - ige256_
encrypt - AES-256-IGE encrypts
datain place.data.len()must be a multiple of 16. - kdf
- MTProto 2.0 key derivation: returns
(aes_key, aes_iv)for a message.outgoingis true for client→server messages (x=0) and false for server→client (x=8). - pack_
message - Encrypts a client→server MTProto 2.0 message, ready to send.
- unpack_
message - Decrypts and checks an MTProto 2.0 message.
incomingis true for server→client messages, the usual case for a client.