| Total Complexity | 8 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class EdDsaVerifier implements Verifier |
||
| 14 | { |
||
| 15 | protected static string $name = 'EdDSA'; |
||
| 16 | |||
| 17 | protected EdDsaPublicKey $publicKey; |
||
| 18 | |||
| 19 | public function __construct(EdDsaPublicKey $publicKey) |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | */ |
||
| 27 | public function verify(string $plain, string $signature): void |
||
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 42 | public function name(): string |
||
| 43 | { |
||
| 44 | return static::$name; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritDoc |
||
| 49 | */ |
||
| 50 | public function kid(): ?string |
||
| 53 | } |
||
| 54 | |||
| 55 | public function getPublicKey(): EdDsaPublicKey |
||
| 58 | } |
||
| 59 | } |
||
| 60 |