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 24657 - Key.algorithm should be of type KeyAlgorithm
Summary: Key.algorithm should be of type KeyAlgorithm
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-02-13 20:58 UTC by Eric Roman
Modified: 2014-02-20 21:35 UTC (History)
1 user (show)

See Also:


Attachments

Description Eric Roman 2014-02-13 20:58:59 UTC
Change 2fa3494f0179 introduced the KeyAlgorithm interface.

Section 12 needs to be updated. Currently it lists:

interface Key {
  readonly attribute KeyType type;
  readonly attribute boolean extractable;
  readonly attribute Algorithm algorithm;
  readonly attribute KeyUsage[] usages;
};

I believe that "Algorithm algorithm" should be replaced now with "KeyAlgorithm algorithm", otherwise the Key interface doesn't make sense (since KeyAlgorithm does not derive from Algorithm).

Cheers.
Comment 1 Eric Roman 2014-02-19 02:21:24 UTC
Similarly in the structured clone section it says:

* type
* extractable
* Algorithm
* KeyUsage

Should be KeyAlgorithm instead of Algorithm. Or change the last to to "algorithm" and "usages" for consistency with the first two which are names rather than types.
Comment 2 Mark Watson 2014-02-20 21:35:43 UTC
Changeset e7788285fb48