mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 04:51:19 +01:00
Use toBits() as there is no bits property.
This commit is contained in:
parent
2ccb301c4c
commit
737c8a9d0f
@ -2904,7 +2904,7 @@ class Math_BigInteger
|
||||
$leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
|
||||
$this->_base256_lshift($leading_ones, $current_bits);
|
||||
|
||||
$temp = str_pad($temp, ceil($this->bits / 8), chr(0), STR_PAD_LEFT);
|
||||
$temp = str_pad($temp, ceil(strlen($this->toBits()) / 8), chr(0), STR_PAD_LEFT);
|
||||
|
||||
return $this->_normalize(new Math_BigInteger($leading_ones | $temp, 256));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user