diff --git a/src/Cryptor/Asymmetric/ElGamal/PrivateKey.php b/src/Cryptor/Asymmetric/ElGamal/PrivateKey.php index ba8283bb..f8bd49f2 100644 --- a/src/Cryptor/Asymmetric/ElGamal/PrivateKey.php +++ b/src/Cryptor/Asymmetric/ElGamal/PrivateKey.php @@ -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(