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