mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-15 10:26:59 +01:00
Merge branch '3.0'
This commit is contained in:
commit
49afc58e04
@ -3117,7 +3117,6 @@ abstract class SymmetricKey
|
|||||||
if (strlen($this->nonce) == 12) {
|
if (strlen($this->nonce) == 12) {
|
||||||
$this->iv = $this->nonce . "\0\0\0\1";
|
$this->iv = $this->nonce . "\0\0\0\1";
|
||||||
} else {
|
} else {
|
||||||
$s = 16 * ceil(strlen($this->nonce) / 16) - strlen($this->nonce);
|
|
||||||
$this->iv = $this->ghash(
|
$this->iv = $this->ghash(
|
||||||
self::nullPad128($this->nonce) . str_repeat("\0", 8) . self::len64($this->nonce)
|
self::nullPad128($this->nonce) . str_repeat("\0", 8) . self::len64($this->nonce)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user