1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 10:51:20 +01:00
This commit is contained in:
Daniil Gentili 2016-07-21 13:12:51 +02:00
parent 19517be069
commit 0c9dadf2b8

View File

@ -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));