| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Jose\Component\Core; |
| 6 | |
| 7 | interface Algorithm |
| 8 | { |
| 9 | /** |
| 10 | * Returns the name of the algorithm. |
| 11 | */ |
| 12 | public function name(): string; |
| 13 | |
| 14 | /** |
| 15 | * Returns the key types suitable for this algorithm (e.g. "oct", "RSA"...). |
| 16 | * |
| 17 | * @return string[] |
| 18 | */ |
| 19 | public function allowedKeyTypes(): array; |
| 20 | } |