1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-13 17:47:29 +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: case 256:
break; break;
default: 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); parent::setKeyLength($length);