| Conditions | 3 |
| Paths | 2 |
| Total Lines | 4 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 23 | public function verify(string $plain, string $signature): void |
||
| 24 | { |
||
| 25 | if (openssl_verify($plain, $signature, $this->publicKey->getResource(), $this->algorithm()) !== 1) { |
||
| 26 | throw new InvalidSignatureException(openssl_error_string() ?: "The signature is invalid."); |
||
| 27 | } |
||
| 43 |