mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-09-30 07:59:01 +00:00
RSA: the salt length, if not specified, is the length of the hash
This commit is contained in:
parent
06cd62ae55
commit
5f8ca76d0f
@ -705,7 +705,7 @@ abstract class RSA extends AsymmetricKey
|
|||||||
*/
|
*/
|
||||||
public function getSaltLength()
|
public function getSaltLength()
|
||||||
{
|
{
|
||||||
return $this->sLen;
|
return $this->sLen !== null ? $this->sLen : $this->hLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user