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 26536 - Length property of HmacDerivedKeyParams seems redundant
Summary: Length property of HmacDerivedKeyParams seems redundant
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: Mark Watson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 26311
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-07 10:34 UTC by Tim Taubert
Modified: 2014-09-26 00:59 UTC (History)
4 users (show)

See Also:


Attachments

Description Tim Taubert 2014-08-07 10:34:06 UTC
HmacDerivedKeyParams derives from HmacImportParams but defines the |length| property again. Can't we just let it derive without defining the property a second time? Or we could let it derive from Algorithm and define |hash| again which would also be redundant.

dictionary HmacImportParams : Algorithm {
  HashAlgorithmIdentifier hash;
  [EnforceRange] unsigned long length;
};

dictionary HmacDerivedKeyParams : HmacImportParams {
  [EnforceRange] unsigned long length;
};
Comment 1 Mark Watson 2014-09-22 18:05:31 UTC
Seems reasonable to drop the length property from the derived dictionary.