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 25094 - Add length field to HmacKeyAlgorithm
Summary: Add length field to HmacKeyAlgorithm
Status: RESOLVED FIXED
Alias: None
Product: Web Cryptography
Classification: Unclassified
Component: Web Cryptography API Document (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Ryan Sleevi
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-18 22:49 UTC by Richard Barnes
Modified: 2014-06-16 23:10 UTC (History)
0 users

See Also:


Attachments

Description Richard Barnes 2014-03-18 22:49:05 UTC
It seems like we expose length attributes for all of the *KeyAlgorithm interfaces besides HmacKeyAlgorithm.  Also, the other *KeyAlgorithm interfaces have the [NoInterfaceObject] directive.

Proposed micro-patch:
+[NoInterfaceObject]
 interface HmacKeyAlgorithm : KeyAlgorithm {
   // The inner hash function to use.
   readonly attribute KeyAlgorithm hash;
+  // The length (in bits) of the key
+  readonly attribute unsigned long length;
 };