Closed
Bug 174806
Opened 23 years ago
Closed 23 years ago
AES keys don't have CKA_VALUE_LEN
Categories
(NSS :: Libraries, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
3.7
People
(Reporter: jamie-bugzilla, Assigned: rrelyea)
Details
Attachments
(1 file)
AES keys should have the CKA_VALUE_LEN attribute to say how long they are, so
that PK11_GetKeyLength and PK11_GetKeyStrength work properly. I think this
should happen in pkcs11.c:validateSecretKey, where it happens for all the other
variable-length secret key types.
Reporter | ||
Comment 1•23 years ago
|
||
I should point out I'm using a token symmetric key. Looking into this a little
deeper, I see that pkcs11u.c:pk11_FindSecretKeyAttribute has no code to return
the CKA_VALUE_LEN field. So the problem may be there instead.
Updated•23 years ago
|
Priority: -- → P1
Target Milestone: --- → 3.7
Assignee | ||
Comment 2•23 years ago
|
||
I'll add the code, though the NSS's use of CKA_VALUE_LEN appears to be a
non-standard use. Longer term this should be raised with the pkcs #11 working group.
bob
Assignee | ||
Comment 3•23 years ago
|
||
Assignee | ||
Comment 4•23 years ago
|
||
checked into tip.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•