diff options
author | Andrew Dolgov <[email protected]> | 2023-10-20 16:44:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-20 16:44:35 +0300 |
commit | 8bec661288b276c98bdb0e773e5f4d5275dc4c87 (patch) | |
tree | 8617ebe581c62fc46a7881aa61801ebce9d3c603 /vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php | |
parent | 540438c2eb5452bacad30c247906bfa287f2da1d (diff) |
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php')
-rw-r--r-- | vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php | 8 |
1 files changed, 4 insertions, 4 deletions
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; |