Package: php-phpseclib / 2.0.30-2+deb11u2

0020-RSA-misc-fixes-for-without-NULL-PKCS1-signature-vali.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: terrafrost <terrafrost@gmail.com>
Date: Sat, 3 Apr 2021 17:55:12 -0500
Subject: RSA: misc fixes for 'without NULL' PKCS1 signature validation

Origin: upstream, https://github.com/phpseclib/phpseclib/pull/1635/commits/8af4280bdebf77b87b558510c925794380b84d16
---
 phpseclib/Crypt/RSA.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php
index d9c5a3f..7224771 100644
--- a/phpseclib/Crypt/RSA.php
+++ b/phpseclib/Crypt/RSA.php
@@ -2950,6 +2950,9 @@ class RSA
                 break;
             case 'sha512':
                 $t = pack('H*', '304f300b06096086480165030402030440');
+                break;
+            default:
+                return false;
         }
         $t.= $h;
         $tLen = strlen($t);