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