Skip to content

Commit

Permalink
RSA: misc fixes for 'without NULL' PKCS1 signature validation
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Apr 3, 2021
1 parent 581fbdb commit 8af4280
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions phpseclib/Crypt/RSA.php
Expand Up @@ -3035,6 +3035,9 @@ function _emsa_pkcs1_v1_5_encode_without_null($m, $emLen)
break;
case 'sha512':
$t = pack('H*', '304f300b06096086480165030402030440');
break;
default:
return false;
}
$t.= $h;
$tLen = strlen($t);
Expand Down

0 comments on commit 8af4280

Please sign in to comment.