Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class PBEWithMD5AndDESCBCAlgorithmIdentifier extends PBES1PKCS5AlgorithmIdentifier |
||
18 | { |
||
19 | /** |
||
20 | * Constructor. |
||
21 | * |
||
22 | * @param string $salt Salt |
||
23 | * @param int $iteration_count Iteration count |
||
24 | */ |
||
25 | 4 | public function __construct(string $salt, int $iteration_count) |
|
26 | { |
||
27 | 4 | parent::__construct($salt, $iteration_count); |
|
28 | 3 | $this->_oid = self::OID_PBE_WITH_MD5_AND_DES_CBC; |
|
29 | 3 | } |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 1 | public function name(): string |
|
35 | { |
||
36 | 1 | return 'pbeWithMD5AndDES-CBC'; |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 2 | public function hashFunc(): HashFunc |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 2 | public function blockCipher(): BlockCipherAlgorithmIdentifier |
|
55 |