Documentation - v0.27.1
    Preparing search index...

    Function generateKeyAndIvFromNonce

    • Generate AES key and IV from nonces as defined by MTProto. Used in authorization flow.

      Parameters

      • crypto: ICryptoProvider

        Crypto provider

      • serverNonce: Uint8Array

        Server nonce

      • newNonce: Uint8Array

        New nonce

      Returns [Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>]

      Tuple: [key, iv]