summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-sdk-php/src/HashInterface.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-11-23 21:14:33 +0300
committerAndrew Dolgov <[email protected]>2022-11-23 21:14:33 +0300
commit0c8af4992cb0f7589dcafaad65ada12753c64594 (patch)
tree18e83d068c3e7dd2499331de977782b382279396 /vendor/aws/aws-sdk-php/src/HashInterface.php
initial
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/HashInterface.php')
-rw-r--r--vendor/aws/aws-sdk-php/src/HashInterface.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/aws/aws-sdk-php/src/HashInterface.php b/vendor/aws/aws-sdk-php/src/HashInterface.php
new file mode 100644
index 0000000..6304e4d
--- /dev/null
+++ b/vendor/aws/aws-sdk-php/src/HashInterface.php
@@ -0,0 +1,27 @@
+<?php
+namespace Aws;
+
+/**
+ * Interface that allows implementing various incremental hashes.
+ */
+interface HashInterface
+{
+ /**
+ * Adds data to the hash.
+ *
+ * @param string $data Data to add to the hash
+ */
+ public function update($data);
+
+ /**
+ * Finalizes the incremental hash and returns the resulting digest.
+ *
+ * @return string
+ */
+ public function complete();
+
+ /**
+ * Removes all data from the hash, effectively starting a new hash.
+ */
+ public function reset();
+}