Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public static function getKeySize($method) |
||
28 | { |
||
29 | $keySizes = self::getKeySizes(); |
||
30 | if (!in_array($method, array_keys($keySizes), true)) { |
||
31 | throw new InvalidMethodException(sprintf('Method "%s" is not a valid AES encryption method', $method)); |
||
32 | } |
||
33 | |||
34 | return $keySizes[$method]; |
||
35 | } |
||
36 | |||
51 |