This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27137 - Incorrect usages for ECDSA key given by "Generate Key"
Summary: Incorrect usages for ECDSA key given by "Generate Key"
Status: RESOLVED FIXED
Alias: None
Product: Web Cryptography
Classification: Unclassified
Component: Web Cryptography API Document (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Ryan Sleevi
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-23 00:27 UTC by Eric Roman
Modified: 2014-10-30 23:16 UTC (History)
2 users (show)

See Also:


Attachments

Description Eric Roman 2014-10-23 00:27:52 UTC
The current language for Generate Key says that:

-----------------
11. Set the [[usages]] internal slot of publicKey to be the empty list.
...
16. Set the [[usages]] internal slot of privateKey to be the usage intersection of usages and [ "sign", "verify" ].
-----------------

This wouldn't yield a useful publicKey.

Instead I propose using the wording from RSA-SSA's "Generate Key" steps:

------------------
11. Set the [[usages]] internal slot of publicKey to be the usage intersection of usages and [ "verify" ].
....
16. Set the [[usages]] internal slot of privateKey to be the usage intersection of usages and [ "sign" ].
------------------