rework signature verification in mozilla::pkix and add tests
Categories
(NSS :: Libraries, enhancement)
Tracking
(Not tracked)
People
(Reporter: keeler, Assigned: keeler)
References
Details
(Whiteboard: [nss-fx])
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
Details |
mozilla::pkix separates signature verification into two steps: computing the digest of the signed data, and then verifying the signature against the digest. This adds some complexity that the VFY_* APIs hide, but that implementation is in need of improvement (for one, the digest versions of those APIs doesn't support RSA-PSS, which we will need soon). We can avoid that complexity and the shortcomings in the implementation by using PK11_Verify* directly and not pre-computing digests.
| Assignee | ||
Comment 1•4 years ago
|
||
The initial implementation of mozilla::pkix split signature verification into
two steps: digesting the data that had been signed and then verifying that
digest. This separation added complexity when moving from mozilla::pkix to the
concrete signature verification code in NSS. The VFY_* APIs hide this
complexity, but those APIs are in need of improvements. This patch avoids using
the VFY_* APIs as well as the additional complexity by removing the separate
digest step and using the PK11_Verify* APIs directly.
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 2•4 years ago
|
||
Description
•