miniproto.crypto.native.aes_256_ige_decrypt
miniproto.crypto.native.aes_256_ige_decrypt
Section titled “miniproto.crypto.native.aes_256_ige_decrypt”aes_256_ige_decrypt(ciphertext: bytes, key: bytes, iv: bytes) -> bytesDecrypt block-aligned AES-256-IGE bytes.
Parameters:
- ciphertext (
bytes) – Bytes whose length is a multiple of 16. - key (
bytes) – Exactly 32 bytes of AES-256 key material. - iv (
bytes) – Exactly 32 bytes in IGE chaining order.
Returns:
bytes– Raw plaintext equal in length tociphertext.
Raises:
ValueError– If key/IV lengths or block alignment are invalid.
Decryption alone does not authenticate arbitrary ciphertext; the MTProto message-key verification wrapper provides the construction-specific check.