Skip to content

Commit a41620f

Browse files
committed
fix: unit test
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 4daa2f2 commit a41620f

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

lib/Service/Install/SignSetupService.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,6 @@ private function validateIfIssignedByLibresignAppCertificate(array $expectedHash
389389

390390
// Check if the signature of the files is valid
391391
$rsa = $x509->getPublicKey();
392-
$rsa->withPadding(RSA::SIGNATURE_PSS);
393-
$rsa->withMGFHash('sha512');
394-
// See https://tools.ietf.org/html/rfc3447#page-38
395-
$rsa->withSaltLength(0);
396392

397393
$signatureData = $this->getSignatureData();
398394
$signature = base64_decode((string)$signatureData['signature']);
@@ -532,10 +528,6 @@ private function createSignatureData(array $hashes): array {
532528
ksort($hashes);
533529

534530
$privateKey = $this->getPrivateKey();
535-
$privateKey->withPadding(RSA::SIGNATURE_PSS);
536-
$privateKey->withMGFHash('sha512');
537-
// See https://tools.ietf.org/html/rfc3447#page-38
538-
$privateKey->withSaltLength(0);
539531
$signature = $privateKey->sign(json_encode($hashes));
540532

541533
return [

0 commit comments

Comments
 (0)