| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Cose\Algorithm\Mac; |
| 6 | |
| 7 | use Cose\Algorithm\Algorithm; |
| 8 | use Cose\Key\Key; |
| 9 | |
| 10 | interface Mac extends Algorithm |
| 11 | { |
| 12 | public function hash(string $data, Key $key): string; |
| 13 | |
| 14 | public function verify(string $data, Key $key, string $signature): bool; |
| 15 | } |