RSA: the salt length, if not specified, is the length of the hash

This commit is contained in:
terrafrost 2021-01-14 08:11:53 -06:00
parent 06cd62ae55
commit 5f8ca76d0f

View File

@ -705,7 +705,7 @@ abstract class RSA extends AsymmetricKey
*/
public function getSaltLength()
{
return $this->sLen;
return $this->sLen !== null ? $this->sLen : $this->hLen;
}
/**