mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 12:32:45 +00:00
CS adjustment
This commit is contained in:
parent
41dbac7a9e
commit
26b2b3f473
@ -572,7 +572,7 @@ class Hash
|
||||
$length = count($m) ? strlen($m[$i]) : 0;
|
||||
$pad = 32 - ($length % 32);
|
||||
$pad = max(32, $length + $pad % 32);
|
||||
$m[$i] = str_pad(isset($m[$i]) ? $m[$i] : '', $pad, "\0"); // zeropad
|
||||
$m[$i] = str_pad($m[$i] ?? '', $pad, "\0"); // zeropad
|
||||
$m[$i] = pack('N*', ...unpack('V*', $m[$i])); // ENDIAN-SWAP
|
||||
|
||||
$y .= static::nh($k, $m[$i], new BigInteger($length * 8));
|
||||
|
Loading…
Reference in New Issue
Block a user