commit | a4f113eef935d8543cb194f8239807112a3b3aaa | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Tue Feb 18 21:18:31 2014 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Tue Feb 18 21:18:31 2014 +0200 |
tree | 5706b52c119d8e6179f9fb8537f9e69472c95a30 | |
parent | 9bf3cf2e2b770db17953a8db87ccfa17e438aa2e [diff] [blame] |
CI_Encryption::hkdf() to follow RFC5869 more strictly
diff --git a/system/libraries/Encryption.php b/system/libraries/Encryption.php index 3ce9f1b..bfc1e89 100644 --- a/system/libraries/Encryption.php +++ b/system/libraries/Encryption.php
@@ -845,7 +845,7 @@ 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 = '';