1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-11 16:49:42 +01:00

remove unneeded strlen call

This commit is contained in:
Sokolovskyy Roman 2017-07-20 11:36:51 +02:00
parent 65d9e2bb49
commit 800b81d3ef

View File

@ -402,7 +402,7 @@ class Twofish extends BlockCipher
case 256:
break;
default:
throw new \LengthException('Key of size ' . strlen($key) . ' not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported');
throw new \LengthException('Key of size ' . $length . ' not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported');
}
parent::setKeyLength($length);