W3C home > Mailing lists > Public > public-webcrypto@w3.org > March 2014

HmacKeyAlgorithm missing length?

From: Richard Barnes <rlb@ipv.sx>
Date: Tue, 18 Mar 2014 13:40:43 -0400
Message-ID: <CAL02cgTY8zHX2Qj2Z-2_EtcJ0oZ+ht+hcyHnHweR0oNKk+HYjg@mail.gmail.com>
To: "public-webcrypto@w3.org" <public-webcrypto@w3.org>
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
+  [EnforceRange] unsigned long length;
 };
Received on Tuesday, 18 March 2014 17:51:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:17:22 UTC