Closed
Bug 1269366
(non-named-curves)
Opened 8 years ago
Closed 8 years ago
Support for non-named curves
Categories
(NSS :: Libraries, defect)
NSS
Libraries
Tracking
(firefox49 affected)
RESOLVED
FIXED
3.25
Tracking | Status | |
---|---|---|
firefox49 | --- | affected |
People
(Reporter: franziskus, Assigned: franziskus)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
3.21 KB,
patch
|
ttaubert
:
review+
|
Details | Diff | Splinter Review |
3.67 KB,
patch
|
wtc
:
review+
|
Details | Diff | Splinter Review |
We currently have code to support non-named curves that doesn't get compiled. We should either enable this code and make it work or remove it if it's not of interest anymore.
Comment 1•8 years ago
|
||
Make it gone!
Assignee | ||
Comment 2•8 years ago
|
||
It's actually not as much as I first thought. If you think this is more critical, you can pass it on to Bob or Wan-Teh.
Assignee: nobody → franziskuskiefer
Attachment #8748058 -
Flags: review?(ttaubert)
Comment 3•8 years ago
|
||
Comment on attachment 8748058 [details] [diff] [review] remove-non-named-curves.patch Review of attachment 8748058 [details] [diff] [review]: ----------------------------------------------------------------- Let's fix the comments in lowkey.c and ssl3ecc.c too, the ones referring to "generic curves".
Attachment #8748058 -
Flags: review?(ttaubert) → review+
Assignee | ||
Comment 4•8 years ago
|
||
Hi Wan-Teh, I'm removing the leftovers of non-named curve support. The first patch Tim reviewed is non-critical, but this one removes nsslowkey_ECParamsTemplate, which doesn't seem to be used for anything other than non-named curves. Is it ok to remove this? Thanks
Attachment #8748638 -
Flags: review?(wtc)
Comment 5•8 years ago
|
||
Comment on attachment 8748638 [details] [diff] [review] non-named-curves-take2.patch Review of attachment 8748638 [details] [diff] [review]: ----------------------------------------------------------------- r=wtc. More code should be deleted, as shown by this MXR query: http://mxr.mozilla.org/nss/search?string=nsslowkey_ECParamsTemplate In particular, the declaration of nsslowkey_ECParamsTemplate in lib/softoken/lowkeyti.h should be deleted.
Attachment #8748638 -
Flags: review?(wtc) → review+
Comment 6•8 years ago
|
||
Comment on attachment 8748638 [details] [diff] [review] non-named-curves-take2.patch Review of attachment 8748638 [details] [diff] [review]: ----------------------------------------------------------------- ::: lib/softoken/lowkey.c @@ -98,5 @@ > - * parameters. For now, we only support named curves in which > - * EC params are simply encoded as an object ID and we don't > - * use nsslowkey_ECParamsTemplate. > - */ > -const SEC_ASN1Template nsslowkey_ECParamsTemplate[] = { Franziskus: an alternative course of action is to update the comments to reflect the fact that we won't support generic curves, and start using nsslowkey_ECParamsTemplate so that we set the |type| field of struct ECParamsStr while decoding. This alternative approach is somewhat appealing, but it has some risk because I don't know if nsslowkey_ECParamsTemplate really works. So this patch is safer and less work.
Assignee | ||
Comment 7•8 years ago
|
||
removed the declaration of nsslowkey_ECParamsTemplate as well and landed as https://hg.mozilla.org/projects/nss/rev/97803c2b21bc
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.25
Comment 8•8 years ago
|
||
Franziskus: please also remove the references to nsslowkey_ECParamsTemplate lib/softoken/legacydb. You can find them using this MXR query: http://mxr.mozilla.org/nss/search?string=nsslowkey_ECParamsTemplate
Assignee | ||
Comment 9•8 years ago
|
||
uh, I meant remove that... Thanks for pointing it out. I removed the legacydb references in https://hg.mozilla.org/projects/nss/rev/48fe5529358a
Comment 10•8 years ago
|
||
Franziskus: you still missed a comment and an ifdef in lib/softoken/legacydb/lowkey.c :-) http://mxr.mozilla.org/nss/search?string=nsslowkey_ECParamsTemplate
Assignee | ||
Comment 11•8 years ago
|
||
I searched for it... not sure how I missed that :/ thanks! https://hg.mozilla.org/projects/nss/rev/ad399d244c4f
You need to log in
before you can comment on or make changes to this bug.
Description
•