diff --git a/src/PhpZip/Crypto/TraditionalPkwareEncryptionEngine.php b/src/PhpZip/Crypto/TraditionalPkwareEncryptionEngine.php index 4045545..1d12603 100644 --- a/src/PhpZip/Crypto/TraditionalPkwareEncryptionEngine.php +++ b/src/PhpZip/Crypto/TraditionalPkwareEncryptionEngine.php @@ -367,8 +367,8 @@ public function decrypt($content) $byte = 0; for ($i = 0; $i < self::STD_DEC_HDR_SIZE; $i++) { - $headerBytes[$i] = ($headerBytes[$i] ^ $this->decryptByte()) & 0xff; - $this->updateKeys($headerBytes[$i]); + $byte = ($headerBytes[$i] ^ $this->decryptByte()) & 0xff; + $this->updateKeys($byte); } if ($this->entry->getGeneralPurposeBitFlag(ZipEntry::GPBF_DATA_DESCRIPTOR)) {