From 8af4280bdebf77b87b558510c925794380b84d16 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 3 Apr 2021 17:55:12 -0500 Subject: [PATCH] RSA: misc fixes for 'without NULL' PKCS1 signature validation --- phpseclib/Crypt/RSA.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index 770c6747..c5f69770 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -3035,6 +3035,9 @@ class Crypt_RSA break; case 'sha512': $t = pack('H*', '304f300b06096086480165030402030440'); + break; + default: + return false; } $t.= $h; $tLen = strlen($t);