| 1 |
<?php |
| 2 |
|
| 3 |
namespace Dudlewebs\WPMCS\s3\Aws; |
| 4 |
|
| 5 |
/** |
| 6 |
* Interface that allows implementing various incremental hashes. |
| 7 |
*/ |
| 8 |
interface HashInterface |
| 9 |
{ |
| 10 |
/** |
| 11 |
* Adds data to the hash. |
| 12 |
* |
| 13 |
* @param string $data Data to add to the hash |
| 14 |
*/ |
| 15 |
public function update($data); |
| 16 |
/** |
| 17 |
* Finalizes the incremental hash and returns the resulting digest. |
| 18 |
* |
| 19 |
* @return string |
| 20 |
*/ |
| 21 |
public function complete(); |
| 22 |
/** |
| 23 |
* Removes all data from the hash, effectively starting a new hash. |
| 24 |
*/ |
| 25 |
public function reset(); |
| 26 |
} |
| 27 |
|