File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 [
You can’t perform that action at this time.
0 commit comments