• Compute password hash as defined by MTProto.

    See https://core.telegram.org/api/srp#checking-the-password-with-srp

    Parameters

    • crypto: ICryptoProvider

      Crypto provider

    • password: Uint8Array

      Password

    • salt1: Uint8Array

      Salt 1

    • salt2: Uint8Array

      Salt 2

    Returns Promise<Uint8Array>