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