From 0c9dadf2b878d03b9acb42c4c5b12e1bca5b2e6f Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 21 Jul 2016 13:12:51 +0200 Subject: [PATCH] Update --- mtproto.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mtproto.php b/mtproto.php index 9db6d249a..2f6829a40 100755 --- a/mtproto.php +++ b/mtproto.php @@ -280,9 +280,8 @@ class Session $server_nonce = $ResPQ['server_nonce']; $public_key_fingerprint = $ResPQ['server_public_key_fingerprints'][0]; $pq_bytes = $ResPQ['pq']; - $pq = bytes_to_long($pq_bytes); - $opq = new \phpseclib\Math\BigInteger($pq_bytes, 256); - var_dump($pq, $opq->toString()); die; + $pq = new \phpseclib\Math\BigInteger($pq_bytes, 256); + var_dump($this->PrimeModule->primefactors($pq));die; var_dump($this->PrimeModule->pollard_brent(15)); var_dump($this->PrimeModule->primefactors(1724114033281923457)); var_dump($this->PrimeModule->primefactors(378221), $this->PrimeModule->primefactors(15));