Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | trait KeySizeTrait |
||
13 | { |
||
14 | /** |
||
15 | * The size in bits of the key to be derived from the shared secret as the UTF-8 string for the corresponding |
||
16 | * decimal integer with only digits in the string and no leading zeros. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | private static string $keySize_regex = '/^([1-9]\d*)$/D'; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * @param string $value |
||
25 | * @param string $message |
||
26 | */ |
||
27 | protected static function validKeySize(string $value, string $message = ''): void |
||
37 |