Closed Bug 1354488 Opened 7 years ago Closed 7 years ago

RSA_CheckSign() doesn't set proper error values

Categories

(NSS :: Libraries, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ttaubert, Assigned: ttaubert)

Details

RSA_CheckSign(), unlike e.g. RSA_CheckSignPSS() and emsa_pss_verify(), does not set the correct error values. It properly checks whether a signature is valid but doesn't tell you whether verification failed because we're OOM, the given signature is too short, etc.

We need to adjust the tests added by https://nss-review.dev.mozaws.net/D283 when fixing this.
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
https://hg.mozilla.org/projects/nss/rev/9cb13ed4a678
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.31
You need to log in before you can comment on or make changes to this bug.