Skip to content

Commit ad881b9

Browse files
bilogicterrafrost
authored andcommitted
Update Rijndael.php
fix $length denomination
1 parent 90976f2 commit ad881b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Crypt/Rijndael.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function setBlockLength($length)
8080
} elseif ($length < 4) {
8181
$length = 4;
8282
}
83-
$this->cipher->setBlockLength($length);
83+
$this->cipher->setBlockLength($length << 5);
8484
}
8585

8686
/**
@@ -134,4 +134,4 @@ public function setPassword($password, $method = 'pbkdf2')
134134
$this->password = $args;
135135
$this->cipher->setPassword(...$args);
136136
}
137-
}
137+
}

0 commit comments

Comments
 (0)