mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
SSH2: micro-optimization for AES-GCM
This commit is contained in:
parent
70f5eb4bf7
commit
16abd15089
@ -4120,7 +4120,7 @@ class SSH2
|
|||||||
$this->encrypt->invocation_counter
|
$this->encrypt->invocation_counter
|
||||||
);
|
);
|
||||||
Strings::increment_str($this->encrypt->invocation_counter);
|
Strings::increment_str($this->encrypt->invocation_counter);
|
||||||
$this->encrypt->setAAD($temp = substr($packet, 0, 4));
|
$this->encrypt->setAAD($temp = ($packet & "\xFF\xFF\xFF\xFF"));
|
||||||
$packet = $temp . $this->encrypt->encrypt(substr($packet, 4));
|
$packet = $temp . $this->encrypt->encrypt(substr($packet, 4));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user