Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class PBEWithMD2AndDESCBCAlgorithmIdentifier extends PBES1PKCS5AlgorithmIdentifier |
||
18 | { |
||
19 | /** |
||
20 | * Constructor. |
||
21 | * |
||
22 | * @param string $salt Salt |
||
23 | * @param int $iteration_count Iteration count |
||
24 | */ |
||
25 | 2 | public function __construct(string $salt, int $iteration_count) |
|
29 | 2 | } |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 1 | public function name(): string |
|
35 | { |
||
36 | 1 | return 'pbeWithMD2AndDES-CBC'; |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 2 | public function hashFunc(): HashFunc |
|
43 | { |
||
44 | 2 | return new MD2(); |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 2 | public function blockCipher(): BlockCipherAlgorithmIdentifier |
|
53 | } |
||
54 | } |
||
55 |