PeculiarVentures / webcrypto-core

A input validation layer for WebCrypto polyfills.
MIT License
28 stars 13 forks source link

fix: RSA-PSS salt length #32

Closed jhuenges closed 3 years ago

jhuenges commented 3 years ago

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.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 94.152% when pulling c1dfebc939f0d42129a41761cd3c92b663e332a5 on jhuenges:fix/rsa-pss-salt-length into 67f07b3e864c32394cea1bdfa4b534f3739f90fa on PeculiarVentures:master.

microshine commented 3 years ago

@jhuenges Thank you for that fix. I published the new version v1.1.9

jhuenges commented 3 years ago

Thanks a lot!