no need to calculate the header size, if the first block contain a header we already know the size
This commit is contained in:
parent
e983bd7db0
commit
7b9d53b7ea
|
@ -841,7 +841,7 @@ class Encryption extends Wrapper {
|
|||
$firstBlock = $this->readFirstBlock($path);
|
||||
|
||||
if (substr($firstBlock, 0, strlen(Util::HEADER_START)) === Util::HEADER_START) {
|
||||
$headerSize = strlen($firstBlock);
|
||||
$headerSize = $this->util->getHeaderSize();
|
||||
}
|
||||
|
||||
return $headerSize;
|
||||
|
|
Loading…
Reference in New Issue