Debian Codegraph @

lib/3rdParty/composer/web-token/jwt-library/Signature/Algorithm/MacAlgorithm.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Jose\Component\Signature\Algorithm;
6
7 use Jose\Component\Core\Algorithm;
8 use Jose\Component\Core\JWK;
9
10 interface MacAlgorithm extends Algorithm
11 {
12 /**
13 * Sign the input.
14 *
15 * @param JWK $key The private key used to hash the data
16 * @param string $input The input
17 */
18 public function hash(JWK $key, string $input): string;
19
20 /**
21 * Verify the signature of data.
22 *
23 * @param JWK $key The private key used to hash the data
24 * @param string $input The input
25 * @param string $signature The signature to verify
26 */
27 public function verify(JWK $key, string $input, string $signature): bool;
28 }