mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-09 15:20:58 +00:00
Merge branch '2.0'
This commit is contained in:
commit
3df87e8632
@ -109,6 +109,15 @@ class Hash
|
|||||||
*/
|
*/
|
||||||
private $parameters = [];
|
private $parameters = [];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Computed Key
|
||||||
|
*
|
||||||
|
* @see self::_computeKey()
|
||||||
|
* @var string
|
||||||
|
* @access private
|
||||||
|
*/
|
||||||
|
private $computedKey = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Outer XOR (Internal HMAC)
|
* Outer XOR (Internal HMAC)
|
||||||
*
|
*
|
||||||
@ -170,6 +179,11 @@ class Hash
|
|||||||
*/
|
*/
|
||||||
private function computeKey()
|
private function computeKey()
|
||||||
{
|
{
|
||||||
|
if ($this->key === false) {
|
||||||
|
$this->computedKey = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (strlen($this->key) <= $this->getBlockLengthInBytes()) {
|
if (strlen($this->key) <= $this->getBlockLengthInBytes()) {
|
||||||
$this->computedKey = $this->key;
|
$this->computedKey = $this->key;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user