Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Van Nguyen <[email protected]>
  • Loading branch information
nguyennv committed Jan 23, 2024
1 parent aec7021 commit bb3f600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cryptor/Asymmetric/ElGamal/PrivateKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getPublicKey(): PublicKey
*/
public function decrypt(string $cipherText): string
{
$byteLength = Helper::bit2ByteLength($this->getBitSize()) * 2;
$inputSize = Helper::bit2ByteLength($this->getBitSize()) * 2;
$length = strlen($cipherText);
if ($length > $inputSize) {
throw new \InvalidArgumentException(
Expand Down

0 comments on commit bb3f600

Please sign in to comment.