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