| 1 | <?php |
||
| 20 | abstract class HMAC implements MacAlgorithm |
||
| 21 | { |
||
| 22 | public function allowedKeyTypes(): array |
||
| 26 | |||
| 27 | public function verify(JWK $key, string $input, string $signature): bool |
||
| 31 | |||
| 32 | public function hash(JWK $key, string $input): string |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @throws InvalidArgumentException if the key is invalid |
||
| 41 | */ |
||
| 42 | protected function getKey(JWK $key): string |
||
| 57 | |||
| 58 | abstract protected function getHashAlgorithm(): string; |
||
| 59 | } |
||
| 60 |