miniproto.crypto.native.aes_256_ige_encrypt
miniproto.crypto.native.aes_256_ige_encrypt
Section titled “miniproto.crypto.native.aes_256_ige_encrypt”aes_256_ige_encrypt(plaintext: bytes, key: bytes, iv: bytes) -> bytesEncrypt block-aligned bytes with AES-256-IGE.
Parameters:
- plaintext (
bytes) – Bytes whose length is a multiple of 16; no padding is added. - key (
bytes) – Exactly 32 bytes of AES-256 key material. - iv (
bytes) – Exactly 32 bytes: previous ciphertext followed by previous plaintext.
Returns:
bytes– Ciphertext equal in length toplaintext.
Raises:
ValueError– If key/IV lengths or block alignment are invalid.
This selects the loaded backend. IGE supplies no standalone authentication; use it only in the MTProto construction that defines its integrity checks.