Skip to content

Commit

Permalink
Merge branch '1.0' into 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Oct 13, 2018
2 parents f5a9c08 + 2d7aadc commit f938922
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions phpseclib/Crypt/Hash.php
Expand Up @@ -112,6 +112,15 @@ class Hash
*/
var $key = false;

/**
* Computed Key
*
* @see self::_computeKey()
* @var string
* @access private
*/
var $computedKey = false;

/**
* Outer XOR (Internal HMAC)
*
Expand Down Expand Up @@ -183,6 +192,11 @@ function setKey($key = false)
*/
function _computeKey()
{
if ($this->key === false) {
$this->computedKey = false;
return;
}

if (strlen($this->key) <= $this->b) {
$this->computedKey = $this->key;
return;
Expand Down

0 comments on commit f938922

Please sign in to comment.