From b6aed57a4628300e5b0f5328ddd84b048baab3c6 Mon Sep 17 00:00:00 2001 From: danogentili Date: Sat, 6 Aug 2016 00:44:24 +0200 Subject: [PATCH] Update --- mtproto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtproto.php b/mtproto.php index f611e06a..f75cec8a 100755 --- a/mtproto.php +++ b/mtproto.php @@ -286,7 +286,7 @@ class Session foreach (pyjslib_range(1, $this->AUTH_MAX_RETRY) as $i) { $Set_client_DH_params_answer = $this->method_call('set_client_DH_params', ['nonce' => $nonce, 'server_nonce' => $server_nonce, 'encrypted_data' => $encrypted_data]); $auth_key = pow($g_a, $b, $dh_prime); - $auth_key_str = $this->struct->pack(">Q", ($auth_key); + $auth_key_str = $this->struct->pack(">Q", $auth_key); $auth_key_sha = sha1($auth_key_str, true); $auth_key_aux_hash = substr($auth_key_sha, 0, 8); $new_nonce_hash1 = substr(sha1($new_nonce.''.$auth_key_aux_hash, true), -16);