From 8c78945f47a75a757b95bce31c8bb7023e19c4f9 Mon Sep 17 00:00:00 2001 From: bilogic <946010+bilogic@users.noreply.github.com> Date: Mon, 29 Jul 2024 15:13:53 +0800 Subject: [PATCH] Update Rijndael.php fix $length denomination --- src/Crypt/Rijndael.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Crypt/Rijndael.php b/src/Crypt/Rijndael.php index f3b9a7d..4c1743d 100644 --- a/src/Crypt/Rijndael.php +++ b/src/Crypt/Rijndael.php @@ -80,7 +80,7 @@ public function setBlockLength($length) } elseif ($length < 4) { $length = 4; } - $this->cipher->setBlockLength($length); + $this->cipher->setBlockLength($length << 5); } /** @@ -134,4 +134,4 @@ public function setPassword($password, $method = 'pbkdf2') $this->password = $args; $this->cipher->setPassword(...$args); } -} \ No newline at end of file +}