Closed
Bug 325494
Opened 20 years ago
Closed 20 years ago
Multipart verification broken for CKM_ECDSA_SHA1
Categories
(NSS :: Libraries, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
3.11.1
People
(Reporter: andreas.st, Assigned: wtc)
Details
Attachments
(1 file)
|
921 bytes,
patch
|
rrelyea
:
review+
wtc
:
review+
nelson
:
superreview+
|
Details | Diff | Splinter Review |
The issue reported and fixed in 191467 for CKM_DSA_SHA1 still exists for CKM_ECDSA_SHA1. context->multi is incorrectly set to false for CKM_DSA_SHA1, so multi part verification operations do not work. The fix is to delete the assignment, which is unnecessary as context->multi is set to false at the beginning of the function.
===
From pkcs11c.c:NSC_VerifyInit:
case CKM_ECDSA_SHA1:
context->multi = PR_TRUE;
crv = sftk_doSubSHA1(context);
if (crv != CKR_OK) break;
/* fall through */
case CKM_ECDSA:
if (key_type != CKK_EC) {
crv = CKR_KEY_TYPE_INCONSISTENT;
break;
}
/* context->multi = PR_FALSE; DELETE THIS LINE */
pubKey = sftk_GetPubKey(key,CKK_EC,&crv);
===
| Assignee | ||
Comment 1•20 years ago
|
||
I gave this patch r=wtc.
Attachment #210417 -
Flags: superreview?(nelson)
Attachment #210417 -
Flags: review?(rrelyea)
Comment 2•20 years ago
|
||
Comment on attachment 210417 [details] [diff] [review]
Patch proposed by Andreas
r+=rrelyea
this function defaults to multi=PR_FALSE (the most common usage in NSS), so the patch is correct.
Attachment #210417 -
Flags: review?(rrelyea) → review+
| Assignee | ||
Updated•20 years ago
|
Attachment #210417 -
Flags: review+
Comment 3•20 years ago
|
||
Comment on attachment 210417 [details] [diff] [review]
Patch proposed by Andreas
sr=nelson.bolyard
Attachment #210417 -
Flags: superreview?(nelson) → superreview+
Comment 4•20 years ago
|
||
Checked in on 3.11 branch
Checking in pkcs11c.c; new revision: 1.68.2.2; previous revision: 1.68.2.1
Trunk checkin delayed due to change of my CVS login name :-/
Wan-Teh, would you care to checkin on the trunk?
Status: NEW → ASSIGNED
Priority: -- → P1
| Assignee | ||
Comment 5•20 years ago
|
||
I checked in the patch on the NSS trunk (3.12).
pkcs11c.c, revision 1.72
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•