1 | <?php |
||
15 | class AesEnum |
||
16 | { |
||
17 | const METHOD_128 = 'aes128'; |
||
18 | const METHOD_192 = 'aes192'; |
||
19 | const METHOD_256 = 'aes256'; |
||
20 | |||
21 | /** |
||
22 | * Get the key size for an encryption method |
||
23 | * |
||
24 | * @param $method |
||
25 | * @return mixed |
||
26 | */ |
||
27 | public static function getKeySize($method) |
||
36 | |||
37 | /** |
||
38 | * Returns an array keyed by the aes method |
||
39 | * |
||
40 | * @return array |
||
41 | */ |
||
42 | private static function getKeySizes() |
||
50 | } |
||
51 |