From 8a123550c5b7d7534de7ca550929c10402d68fb0 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 30 Jan 2022 10:25:45 -0600 Subject: [PATCH] Crypt/Base: code cleanup --- phpseclib/Crypt/Base.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpseclib/Crypt/Base.php b/phpseclib/Crypt/Base.php index 6335a248..20a8144a 100644 --- a/phpseclib/Crypt/Base.php +++ b/phpseclib/Crypt/Base.php @@ -779,6 +779,7 @@ abstract class Base } return $ciphertext; case self::MODE_OFB8: + // OpenSSL has built in support for cfb8 but not ofb8 $ciphertext = ''; $len = strlen($plaintext); $iv = $this->encryptIV; @@ -795,8 +796,6 @@ abstract class Base break; case self::MODE_OFB: return $this->_openssl_ofb_process($plaintext, $this->encryptIV, $this->enbuffer); - case self::MODE_OFB8: - // OpenSSL has built in support for cfb8 but not ofb8 } }