summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-02-18 20:18:31 +0100
committerAndrey Andreev <narf@devilix.net>2014-02-18 20:18:31 +0100
commita4f113eef935d8543cb194f8239807112a3b3aaa (patch)
tree5706b52c119d8e6179f9fb8537f9e69472c95a30 /system
parent9bf3cf2e2b770db17953a8db87ccfa17e438aa2e (diff)
CI_Encryption::hkdf() to follow RFC5869 more strictly
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Encryption.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Encryption.php b/system/libraries/Encryption.php
index 3ce9f1b95..bfc1e892a 100644
--- a/system/libraries/Encryption.php
+++ b/system/libraries/Encryption.php
@@ -845,7 +845,7 @@ class CI_Encryption {
return FALSE;
}
- isset($salt) OR $salt = str_repeat("\0", $this->_digests[$digest]);
+ strlen($salt) OR $salt = str_repeat("\0", $this->_digests[$digest]);
$prk = hash_hmac($digest, $key, $salt, TRUE);
$key = '';