Crypt/Base: adjust default key size for pbkdf1

This commit is contained in:
terrafrost 2014-06-13 10:39:57 -05:00
parent abae026264
commit d474f56f60

View File

@ -573,7 +573,11 @@ class Crypt_Base
$count = isset($func_args[4]) ? $func_args[4] : 1000;
// Keylength
$dkLen = isset($func_args[5]) ? $func_args[5] : $this->password_key_size;
if (!isset($func_args[5])) {
$dkLen = $method == 'pbkdf1' ? 2 * $this->password_key_size : $this->password_key_size;
} else {
$dkLen = $func_args[5];
}
switch (true) {
case $method == 'pbkdf1':