no need to calculate the header size, if the first block contain a header we already know the size

This commit is contained in:
Bjoern Schiessle 2016-03-21 15:47:24 +01:00
parent e983bd7db0
commit 7b9d53b7ea
1 changed files with 1 additions and 1 deletions

View File

@ -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;