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