Skip to content

Commit

Permalink
Update Rijndael.php
Browse files Browse the repository at this point in the history
fix $length denomination
  • Loading branch information
bilogic authored Jul 29, 2024
1 parent 3468997 commit 8c78945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Crypt/Rijndael.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function setBlockLength($length)
} elseif ($length < 4) {
$length = 4;
}
$this->cipher->setBlockLength($length);
$this->cipher->setBlockLength($length << 5);
}

/**
Expand Down Expand Up @@ -134,4 +134,4 @@ public function setPassword($password, $method = 'pbkdf2')
$this->password = $args;
$this->cipher->setPassword(...$args);
}
}
}

0 comments on commit 8c78945

Please sign in to comment.