mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-13 08:56:30 +00:00
RSA/PrivateKey: add comment to explain things
This commit is contained in:
parent
3460c70e3a
commit
91a674a781
@ -228,7 +228,7 @@ class PrivateKey extends RSA implements Common\PrivateKey
|
||||
$h = $this->hash->hash($m2);
|
||||
$ps = str_repeat(chr(0), $emLen - $sLen - $this->hLen - 2);
|
||||
$db = $ps . chr(1) . $salt;
|
||||
$dbMask = $this->mgf1($h, $emLen - $this->hLen - 1);
|
||||
$dbMask = $this->mgf1($h, $emLen - $this->hLen - 1); // ie. stlren($db)
|
||||
$maskedDB = $db ^ $dbMask;
|
||||
$maskedDB[0] = ~chr(0xFF << ($emBits & 7)) & $maskedDB[0];
|
||||
$em = $maskedDB . $h . chr(0xBC);
|
||||
|
Loading…
Reference in New Issue
Block a user