| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class RSA extends AbstractKeyTransporter |
||
| 17 | { |
||
| 18 | /** @var string */ |
||
| 19 | protected string $default_backend = OpenSSL::class; |
||
| 20 | |||
| 21 | |||
| 22 | /** |
||
| 23 | * RSA constructor. |
||
| 24 | * |
||
| 25 | * @param \SimpleSAML\XMLSecurity\Key\AsymmetricKey $key The asymmetric key (either public or private) to use. |
||
| 26 | * @param string $algId The identifier of this algorithm. |
||
| 27 | */ |
||
| 28 | public function __construct(AsymmetricKey $key, string $algId = C::KEY_TRANSPORT_OAEP_MGF1P) |
||
| 31 | } |
||
| 32 | |||
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritDoc |
||
| 36 | */ |
||
| 37 | public static function getSupportedAlgorithms(): array |
||
| 40 | } |
||
| 41 | } |