1
0
Fork 0

Switch phar signatures to sha512

pull/10065/head
Jordi Boggiano 2021-08-17 15:50:50 +02:00
parent 4da1a2d43a
commit e49f24e355
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ class Compiler
} }
$phar = new \Phar($pharFile, 0, 'composer.phar'); $phar = new \Phar($pharFile, 0, 'composer.phar');
$phar->setSignatureAlgorithm(\Phar::SHA1); $phar->setSignatureAlgorithm(\Phar::SHA512);
$phar->startBuffering(); $phar->startBuffering();
@ -173,7 +173,7 @@ class Compiler
// re-sign the phar with reproducible timestamp / signature // re-sign the phar with reproducible timestamp / signature
$util = new Timestamps($pharFile); $util = new Timestamps($pharFile);
$util->updateTimestamps($this->versionDate); $util->updateTimestamps($this->versionDate);
$util->save($pharFile, \Phar::SHA1); $util->save($pharFile, \Phar::SHA512);
Linter::lint($pharFile); Linter::lint($pharFile);
} }