According to the MDN Web Docs and RFC 3447 a typical saltLength in the RsaPssParams is 0. The current validation here prohibits a saltLength smaller than 1.
This PR addresses this issue and checks if the saltLength is below 0 instead of 1.
Coverage remained the same at 94.152% when pulling c1dfebc939f0d42129a41761cd3c92b663e332a5 on jhuenges:fix/rsa-pss-salt-length into 67f07b3e864c32394cea1bdfa4b534f3739f90fa on PeculiarVentures:master.
According to the MDN Web Docs and RFC 3447 a typical
saltLength
in theRsaPssParams
is0
. The current validation here prohibits asaltLength
smaller than1
.This PR addresses this issue and checks if the
saltLength
is below0
instead of1
.