Total Complexity | 4 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class ShaThree512 extends UnkeyedHashAlgorithm |
||
17 | { |
||
18 | /** |
||
19 | * The internal name of the algorithm. |
||
20 | */ |
||
21 | const ALGORITHM_NAME = 'sha3-512'; |
||
22 | |||
23 | /** |
||
24 | * Checksum digestion algorithm constructor. |
||
25 | */ |
||
26 | public function __construct() |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Calculates a hash value for the given data. |
||
35 | * |
||
36 | * @param string $data The input string. |
||
37 | * |
||
38 | * @return string The digest. |
||
39 | * @throws \Exception Validation errors. |
||
40 | */ |
||
41 | public function hashData($data) |
||
64 |