mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 11:20:03 +00:00
RSA: misc fixes for 'without NULL' PKCS1 signature validation
This commit is contained in:
parent
581fbdb671
commit
8af4280bde
@ -3035,6 +3035,9 @@ class Crypt_RSA
|
|||||||
break;
|
break;
|
||||||
case 'sha512':
|
case 'sha512':
|
||||||
$t = pack('H*', '304f300b06096086480165030402030440');
|
$t = pack('H*', '304f300b06096086480165030402030440');
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
$t.= $h;
|
$t.= $h;
|
||||||
$tLen = strlen($t);
|
$tLen = strlen($t);
|
||||||
|
Loading…
Reference in New Issue
Block a user