summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-sdk-php/src/Crypto/AesStreamInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Crypto/AesStreamInterface.php')
-rw-r--r--vendor/aws/aws-sdk-php/src/Crypto/AesStreamInterface.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/aws/aws-sdk-php/src/Crypto/AesStreamInterface.php b/vendor/aws/aws-sdk-php/src/Crypto/AesStreamInterface.php
new file mode 100644
index 0000000..ce7b85d
--- /dev/null
+++ b/vendor/aws/aws-sdk-php/src/Crypto/AesStreamInterface.php
@@ -0,0 +1,30 @@
+<?php
+namespace Aws\Crypto;
+
+use Psr\Http\Message\StreamInterface;
+
+interface AesStreamInterface extends StreamInterface
+{
+ /**
+ * Returns an identifier recognizable by `openssl_*` functions, such as
+ * `aes-256-cbc` or `aes-128-ctr`.
+ *
+ * @return string
+ */
+ public function getOpenSslName();
+
+ /**
+ * Returns an AES recognizable name, such as 'AES/GCM/NoPadding'.
+ *
+ * @return string
+ */
+ public function getAesName();
+
+ /**
+ * Returns the IV that should be used to initialize the next block in
+ * encrypt or decrypt.
+ *
+ * @return string
+ */
+ public function getCurrentIv();
+}