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