From 16df0023256832643d75fe197bc93d80f82e84f6 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 7 Dec 2022 08:32:44 -0600 Subject: [PATCH 1/2] Crypt/Base: add a function to check continuous buffer status --- phpseclib/Crypt/Base.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/phpseclib/Crypt/Base.php b/phpseclib/Crypt/Base.php index 83cab630..1336d0ef 100644 --- a/phpseclib/Crypt/Base.php +++ b/phpseclib/Crypt/Base.php @@ -2744,4 +2744,15 @@ class Crypt_Base function do_nothing() { } + + /** + * Is the continuous buffer enabled? + * + * @access public + * @return boolean + */ + function continuousBufferEnabled() + { + return $this->continuousBuffer; + } } From 8568af7f9bd6487c3283a24d7b546f9b30597cb9 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 7 Dec 2022 08:38:06 -0600 Subject: [PATCH 2/2] SymmetricKey: CS updates --- phpseclib/Crypt/Common/SymmetricKey.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpseclib/Crypt/Common/SymmetricKey.php b/phpseclib/Crypt/Common/SymmetricKey.php index 4cd64181..2a376f11 100644 --- a/phpseclib/Crypt/Common/SymmetricKey.php +++ b/phpseclib/Crypt/Common/SymmetricKey.php @@ -3387,10 +3387,9 @@ abstract class SymmetricKey /** * Is the continuous buffer enabled? * - * @access public * @return boolean */ - function continuousBufferEnabled() + public function continuousBufferEnabled() { return $this->continuousBuffer; }