Closed
Bug 2086776
Opened 19 days ago
Closed 4 days ago
Softoken should return CKR_SIGNATURE_LEN_RANGE/SEC_ERROR_BAD_SIGNATURE for zero-length signatures
Categories
(NSS :: Libraries, defect, P3)
NSS
Libraries
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jschanck, Assigned: jschanck)
Details
Attachments
(1 external file)
In writing tests for ML-DSA I found a few places where softoken will return CKR_ARGUMENTS_BAD / SEC_ERROR_INVALID_ARGS instead of CKR_SIGNATURE_LEN_RANGE / SEC_ERROR_BAD_SIGNATURE. The former has the fatal error flag in moz::pkix (https://searchfox.org/firefox-main/rev/be3847db4e2bcc52fa3f078b8b4a1ff167ad158f/security/nss/lib/mozpkix/include/pkix/Result.h#187). A zero-length signature should be treated as a bad signature, not as a library failure.
| Assignee | ||
Comment 1•19 days ago
|
||
Pushed by jschanck@mozilla.com:
https://hg.mozilla.org/projects/nss/rev/625c4d47dd4b
fix error code for zero-length and wrong-length signatures. r=nss-reviewers,aweine
Status: ASSIGNED → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•