Skip to content

miniproto.crypto.mtproto.EncryptedPayload

EncryptedPayload(auth_key_id: bytes, msg_key: bytes, ciphertext: bytes) -> None

MTProto payload components produced by :func:encrypt_payload.

Attributes:

  • auth_key_id (bytes) – The trailing eight bytes of SHA-1 over the 256-byte auth key.
  • msg_key (bytes) – The 16-byte direction-dependent MTProto message key.
  • ciphertext (bytes) – AES-256-IGE ciphertext for the padded plaintext.