| 1 | <?php |
||
| 5 | abstract class AbstractPhpHashAlgorithm implements HashAlgorithmInterface |
||
| 6 | { |
||
| 7 | protected $context; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * {@inheritdoc} |
||
| 11 | */ |
||
| 12 | public function initialize(): void |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | */ |
||
| 20 | public function digest(string $buffer): void |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public function finalize(): string |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Allows to override the hash algo name. |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | protected function getPhpHashAlgorithmName(): string |
||
| 46 | } |
||
| 47 |