1 | <?php |
||
11 | abstract class HMAC implements Signer |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | 7 | public function sign($input, $key) |
|
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | 6 | public function verify($input, $signature, $key) |
|
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | abstract protected function hashingAlgorithm(); |
||
39 | } |
||
40 |