summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-sdk-php/src/Crypto
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-20 16:44:35 +0300
committerAndrew Dolgov <[email protected]>2023-10-20 16:44:35 +0300
commit8bec661288b276c98bdb0e773e5f4d5275dc4c87 (patch)
tree8617ebe581c62fc46a7881aa61801ebce9d3c603 /vendor/aws/aws-sdk-php/src/Crypto
parent540438c2eb5452bacad30c247906bfa287f2da1d (diff)
update AWK SDKHEADmaster
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Crypto')
-rw-r--r--vendor/aws/aws-sdk-php/src/Crypto/AesDecryptingStream.php8
-rw-r--r--vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php8
-rw-r--r--vendor/aws/aws-sdk-php/src/Crypto/AesGcmDecryptingStream.php2
-rw-r--r--vendor/aws/aws-sdk-php/src/Crypto/AesGcmEncryptingStream.php2
-rw-r--r--vendor/aws/aws-sdk-php/src/Crypto/DecryptionTrait.php2
-rw-r--r--vendor/aws/aws-sdk-php/src/Crypto/DecryptionTraitV2.php2
-rw-r--r--vendor/aws/aws-sdk-php/src/Crypto/EncryptionTrait.php2
-rw-r--r--vendor/aws/aws-sdk-php/src/Crypto/Polyfill/ByteArray.php1
8 files changed, 14 insertions, 13 deletions
diff --git a/vendor/aws/aws-sdk-php/src/Crypto/AesDecryptingStream.php b/vendor/aws/aws-sdk-php/src/Crypto/AesDecryptingStream.php
index c1524cc..feafc46 100644
--- a/vendor/aws/aws-sdk-php/src/Crypto/AesDecryptingStream.php
+++ b/vendor/aws/aws-sdk-php/src/Crypto/AesDecryptingStream.php
@@ -65,7 +65,7 @@ class AesDecryptingStream implements AesStreamInterface
return $this->cipherMethod->getCurrentIv();
}
- public function getSize()
+ public function getSize(): ?int
{
$plainTextSize = $this->stream->getSize();
@@ -80,12 +80,12 @@ class AesDecryptingStream implements AesStreamInterface
return $plainTextSize;
}
- public function isWritable()
+ public function isWritable(): bool
{
return false;
}
- public function read($length)
+ public function read($length): string
{
if ($length > strlen($this->buffer)) {
$this->buffer .= $this->decryptBlock(
@@ -101,7 +101,7 @@ class AesDecryptingStream implements AesStreamInterface
return $data ? $data : '';
}
- public function seek($offset, $whence = SEEK_SET)
+ public function seek($offset, $whence = SEEK_SET): void
{
if ($offset === 0 && $whence === SEEK_SET) {
$this->buffer = '';
diff --git a/vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php b/vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php
index 3b7c446..2cb5ab6 100644
--- a/vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php
+++ b/vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php
@@ -65,7 +65,7 @@ class AesEncryptingStream implements AesStreamInterface
return $this->cipherMethod->getCurrentIv();
}
- public function getSize()
+ public function getSize(): ?int
{
$plainTextSize = $this->stream->getSize();
@@ -79,12 +79,12 @@ class AesEncryptingStream implements AesStreamInterface
return $plainTextSize;
}
- public function isWritable()
+ public function isWritable(): bool
{
return false;
}
- public function read($length)
+ public function read($length): string
{
if ($length > strlen($this->buffer)) {
$this->buffer .= $this->encryptBlock(
@@ -99,7 +99,7 @@ class AesEncryptingStream implements AesStreamInterface
return $data ? $data : '';
}
- public function seek($offset, $whence = SEEK_SET)
+ public function seek($offset, $whence = SEEK_SET): void
{
if ($whence === SEEK_CUR) {
$offset = $this->tell() + $offset;
diff --git a/vendor/aws/aws-sdk-php/src/Crypto/AesGcmDecryptingStream.php b/vendor/aws/aws-sdk-php/src/Crypto/AesGcmDecryptingStream.php
index 76feaa1..6ca7500 100644
--- a/vendor/aws/aws-sdk-php/src/Crypto/AesGcmDecryptingStream.php
+++ b/vendor/aws/aws-sdk-php/src/Crypto/AesGcmDecryptingStream.php
@@ -100,7 +100,7 @@ class AesGcmDecryptingStream implements AesStreamInterface
}
}
- public function isWritable()
+ public function isWritable(): bool
{
return false;
}
diff --git a/vendor/aws/aws-sdk-php/src/Crypto/AesGcmEncryptingStream.php b/vendor/aws/aws-sdk-php/src/Crypto/AesGcmEncryptingStream.php
index 13357f5..0d706e4 100644
--- a/vendor/aws/aws-sdk-php/src/Crypto/AesGcmEncryptingStream.php
+++ b/vendor/aws/aws-sdk-php/src/Crypto/AesGcmEncryptingStream.php
@@ -118,7 +118,7 @@ class AesGcmEncryptingStream implements AesStreamInterface, AesStreamInterfaceV2
return $this->tag;
}
- public function isWritable()
+ public function isWritable(): bool
{
return false;
}
diff --git a/vendor/aws/aws-sdk-php/src/Crypto/DecryptionTrait.php b/vendor/aws/aws-sdk-php/src/Crypto/DecryptionTrait.php
index 7aa1a9a..3eedd1b 100644
--- a/vendor/aws/aws-sdk-php/src/Crypto/DecryptionTrait.php
+++ b/vendor/aws/aws-sdk-php/src/Crypto/DecryptionTrait.php
@@ -161,7 +161,7 @@ trait DecryptionTrait
$cipherOptions['Tag'],
$cipherOptions['Aad'] = isset($cipherOptions['Aad'])
? $cipherOptions['Aad']
- : null,
+ : '',
$cipherOptions['TagLength'] ?: null,
$cipherOptions['KeySize']
);
diff --git a/vendor/aws/aws-sdk-php/src/Crypto/DecryptionTraitV2.php b/vendor/aws/aws-sdk-php/src/Crypto/DecryptionTraitV2.php
index 800319d..ed63e0b 100644
--- a/vendor/aws/aws-sdk-php/src/Crypto/DecryptionTraitV2.php
+++ b/vendor/aws/aws-sdk-php/src/Crypto/DecryptionTraitV2.php
@@ -229,7 +229,7 @@ trait DecryptionTraitV2
$cipherOptions['Tag'],
$cipherOptions['Aad'] = isset($cipherOptions['Aad'])
? $cipherOptions['Aad']
- : null,
+ : '',
$cipherOptions['TagLength'] ?: null,
$cipherOptions['KeySize']
);
diff --git a/vendor/aws/aws-sdk-php/src/Crypto/EncryptionTrait.php b/vendor/aws/aws-sdk-php/src/Crypto/EncryptionTrait.php
index f6d1b7d..37ae59c 100644
--- a/vendor/aws/aws-sdk-php/src/Crypto/EncryptionTrait.php
+++ b/vendor/aws/aws-sdk-php/src/Crypto/EncryptionTrait.php
@@ -156,7 +156,7 @@ trait EncryptionTrait
$cipherOptions['Iv'],
$cipherOptions['Aad'] = isset($cipherOptions['Aad'])
? $cipherOptions['Aad']
- : null,
+ : '',
$cipherOptions['TagLength'],
$cipherOptions['KeySize']
);
diff --git a/vendor/aws/aws-sdk-php/src/Crypto/Polyfill/ByteArray.php b/vendor/aws/aws-sdk-php/src/Crypto/Polyfill/ByteArray.php
index c3472b0..7f5449e 100644
--- a/vendor/aws/aws-sdk-php/src/Crypto/Polyfill/ByteArray.php
+++ b/vendor/aws/aws-sdk-php/src/Crypto/Polyfill/ByteArray.php
@@ -138,6 +138,7 @@ class ByteArray extends \SplFixedArray
* @param int $newval
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($index, $newval)
{
parent::offsetSet($index, $newval & 0xff);