mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-13 10:01:47 +00:00
RSA: fix regression for PSS signatures
This commit is contained in:
parent
ee16fd44ce
commit
15c9f99721
@ -2637,7 +2637,7 @@ class Crypt_RSA
|
||||
// be output.
|
||||
|
||||
$emLen = ($emBits + 1) >> 3; // ie. ceil($emBits / 8)
|
||||
$sLen = $this->sLen === false ? $this->hLen : $this->sLen;
|
||||
$sLen = $this->sLen ? $this->sLen : $this->hLen;
|
||||
|
||||
$mHash = $this->hash->hash($m);
|
||||
if ($emLen < $this->hLen + $sLen + 2) {
|
||||
@ -2675,7 +2675,7 @@ class Crypt_RSA
|
||||
// be output.
|
||||
|
||||
$emLen = ($emBits + 1) >> 3; // ie. ceil($emBits / 8);
|
||||
$sLen = $this->sLen === false ? $this->hLen : $this->sLen;
|
||||
$sLen = $this->sLen ? $this->sLen : $this->hLen;
|
||||
|
||||
$mHash = $this->hash->hash($m);
|
||||
if ($emLen < $this->hLen + $sLen + 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user