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:
parent
65d9e2bb49
commit
800b81d3ef
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user