Closed
Bug 1948485
Opened 1 year ago
Closed 1 year ago
FIPS pair-wise consistency test algorithms
Categories
(NSS :: Libraries, defect)
NSS
Libraries
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: joachim.vandersmissen, Assigned: rrelyea)
Details
Attachments
(1 file)
The pair-wise consistency test implemented in Softoken currently has a number of issues:
- RSA encryption padding (PKCS#1 v1.5) has been disallowed since 2024
- The signature mechanisms don't compute the hash value internally even though this is required by FIPS
- For RSA, the PCT will not fail if the private key is corrupted due to a separate consistency check in rsa_PrivateKeyOpCRTCheckedPubKey
- For DH and ECDH, the PCT (currently) defined by NIST is different than what's implemented in the code.
The easiest ones to address right now are the first two:
- The RSA encryption padding should be changed to OAEP.
- The signature mechanisms should be changed to include the hashing step. Additionally, it is prudent to change the padding mechanism for RSA signatures to PSS.
| Reporter | ||
Comment 1•1 year ago
|
||
Comment 2•1 year ago
|
||
The severity field is not set for this bug.
:beurdouche, could you have a look please?
For more information, please visit BugBot documentation.
Flags: needinfo?(bbeurdouche)
Updated•1 year ago
|
Flags: needinfo?(bbeurdouche) → needinfo?(anna.weine)
Comment 3•1 year ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:joachim, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
Flags: needinfo?(rrelyea)
Flags: needinfo?(joachim)
| Reporter | ||
Comment 4•1 year ago
|
||
I'm not sure what I'm supposed to do here. I don't have Lando permissions so I cannot land the patch.
Flags: needinfo?(joachim)
| Assignee | ||
Comment 5•1 year ago
|
||
I'll check it in as soon as the 3.113 branch clears and default is set again.
Assignee: nobody → rrelyea
| Assignee | ||
Updated•1 year ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Flags: needinfo?(rrelyea)
Resolution: --- → FIXED
Updated•11 months ago
|
Flags: needinfo?(anna.weine)
You need to log in
before you can comment on or make changes to this bug.
Description
•