Applied fixes from StyleCI
This commit is contained in:
parent
770330fef4
commit
6acaae877a
@ -231,7 +231,7 @@ class Session
|
|||||||
pyjslib_printnl('Requesting pq');
|
pyjslib_printnl('Requesting pq');
|
||||||
$ResPQ = $this->method_call('req_pq', ['nonce' => $nonce]);
|
$ResPQ = $this->method_call('req_pq', ['nonce' => $nonce]);
|
||||||
$server_nonce = $ResPQ['server_nonce'];
|
$server_nonce = $ResPQ['server_nonce'];
|
||||||
$public_key_fingerprint = (int)$ResPQ['server_public_key_fingerprints'][0];
|
$public_key_fingerprint = (int) $ResPQ['server_public_key_fingerprints'][0];
|
||||||
$pq_bytes = $ResPQ['pq'];
|
$pq_bytes = $ResPQ['pq'];
|
||||||
|
|
||||||
$pq = new \phpseclib\Math\BigInteger($pq_bytes, 256);
|
$pq = new \phpseclib\Math\BigInteger($pq_bytes, 256);
|
||||||
|
@ -183,7 +183,8 @@ class PrimeModule
|
|||||||
if (count($res) == 2) {
|
if (count($res) == 2) {
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
} catch (ErrorException $e) { ; };
|
} catch (ErrorException $e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Else do factorization with wolfram alpha :)))))
|
// Else do factorization with wolfram alpha :)))))
|
||||||
$query = 'Do prime factorization of '.$pq;
|
$query = 'Do prime factorization of '.$pq;
|
||||||
|
Loading…
Reference in New Issue
Block a user