Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public static function getHmacRandomGenerator(PrivateKeyInterface $privateKey, \GMP $messageHash, string $algorithm, bool $debug = false): RandomNumberGeneratorInterface |
||
34 | { |
||
35 | return self::wrapAdapter( |
||
36 | new HmacRandomNumberGenerator( |
||
37 | MathAdapterFactory::getAdapter($debug), |
||
38 | $privateKey, |
||
39 | $messageHash, |
||
40 | $algorithm |
||
41 | ), |
||
42 | 'rfc6979', |
||
43 | $debug |
||
44 | ); |
||
62 |