Closed
Bug 490154
Opened 17 years ago
Closed 17 years ago
Cryptokey framework requires module to implement GenerateKey when they support KeyPairGeneration
Categories
(NSS :: Libraries, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.12.4
People
(Reporter: elio.maldonado.batiz, Assigned: elio.maldonado.batiz)
Details
Attachments
(1 file)
|
638 bytes,
patch
|
rrelyea
:
review+
|
Details | Diff | Splinter Review |
In lib/ckfw/mechanism.c the nssCKFWMechanism_GenerateKeyPair function
has the following test early on
if (!fwMechanism->mdMechanism->GenerateKey) {
return CKR_FUNCTION_FAILED;
}
It is conceivable for a pkcs #11 module to support key pair generation without supporting secret key generation. The PEM module with write support added would be such a module.
It seems to me that the test want meant to be (and should be)
if (!fwMechanism->mdMechanism->GenerateKeyPair) {
return CKR_FUNCTION_FAILED;
}
| Assignee | ||
Updated•17 years ago
|
Summary: Cryptoket framework requires module to implement GenerateKey when they support KeyPairGeneration → Cryptokey framework requires module to implement GenerateKey when they support KeyPairGeneration
Updated•17 years ago
|
Assignee: nobody → emaldona
| Assignee | ||
Comment 1•17 years ago
|
||
Attachment #374609 -
Flags: review?(rrelyea)
Comment 2•17 years ago
|
||
Comment on attachment 374609 [details] [diff] [review]
Fix function pointer test in nssCKFWMechanism_GenerateKeyPair
r+ Looks like you found a real bug. It should have been generateKeyPair from the beginning.
bob
Attachment #374609 -
Flags: review?(rrelyea) → review+
| Assignee | ||
Comment 3•17 years ago
|
||
Checking in mechanism.c;
/cvsroot/mozilla/security/nss/lib/ckfw/mechanism.c,v <-- mechanism.c
new revision: 1.7; previous revision: 1.6
| Assignee | ||
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•