• Create AES IGE instance for file (given auth key and message key) as defined by MTProto v1.

    Parameters

    • crypto: ICryptoProvider

      Crypto provider

    • authKey: Uint8Array

      Authorization key

    • messageKey: Uint8Array

      Message key

    • client: boolean

      Whether this is a client to server message

    Returns IEncryptionScheme