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 21435 - Specify whether algorithm parameters are required for AES CBC & CTR importKey
Summary: Specify whether algorithm parameters are required for AES CBC & CTR importKey
Status: RESOLVED WORKSFORME
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: 2013-03-29 16:20 UTC by Mark Watson
Modified: 2014-01-22 23:43 UTC (History)
3 users (show)

See Also:


Attachments

Description Mark Watson 2013-03-29 16:20:09 UTC
When using importKey with AES CBC and AES CTR, is the params member (containing the key length) of the AlgorithmIdentifier required ? Or is the key length derived from the provided data ?
Comment 1 Mark Watson 2014-01-22 23:43:34 UTC
The new import text suggests that the operation should fail if the provided key data is inconsistent with the operation parameters, so this explains how to handle the case where a length is provided as a parameter and does or does not match the length of the provided key data.