CKM_CHACHA20 cannot be used
Categories
(NSS :: Libraries, defect)
Tracking
(Not tracked)
People
(Reporter: mt, Assigned: mt)
Details
Attachments
(2 files, 1 obsolete file)
This is for two reasons:
-
Keys constructed for use with CKM_CHACHA20_* are incorrectly assigned a type of CKK_NSS_CHACHA20 by PK11_GetKeyType. CKM_CHACHA20_POLY1305 doesn't check this (it should), so it works fine. CKM_CHACHA20 does and this check prevents the cipher from being initialized.
-
CKM_CHACHA20 is not listed in the mechanism table in softoken/pk11mech.c, so it cannot be used for any purpose.
| Assignee | ||
Comment 1•3 years ago
|
||
This change makes a few tiny changes to the code to re-enable the use of
Chacha20 ciphers and align their key type.
There are a lot more changes in tests, mostly just to factor existing tests and
determine that the legacy and final PKCS#11 mechanisms work as expected.
| Assignee | ||
Comment 2•3 years ago
|
||
This change makes a few tiny changes to the code to re-enable the use of
Chacha20 ciphers and align their key type.
There are a lot more changes in tests, mostly just to factor existing tests and
determine that the legacy and final PKCS#11 mechanisms work as expected.
Updated•3 years ago
|
| Assignee | ||
Comment 3•3 years ago
|
||
| Assignee | ||
Comment 4•3 years ago
|
||
Landed https://hg.mozilla.org/projects/nss/rev/44e6341be5e829c33bdd72d8f9b22ad6f308f227
Keeping open until D135808 lands (a small follow-up from coverity).
| Assignee | ||
Comment 5•3 years ago
|
||
Description
•