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 22547 - Refer to key wrapping operation as "wrapKey" in parameter listings
Summary: Refer to key wrapping operation as "wrapKey" in parameter listings
Status: RESOLVED FIXED
Alias: None
Product: Web Cryptography
Classification: Unclassified
Component: Web Cryptography API Document (show other bugs)
Version: unspecified
Hardware: PC All
: P2 minor
Target Milestone: ---
Assignee: Ryan Sleevi
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-02 23:49 UTC by Eric Roman
Modified: 2013-07-03 23:20 UTC (History)
1 user (show)

See Also:


Attachments

Description Eric Roman 2013-07-02 23:49:59 UTC
In the per-algorithm datatables which list the (Operation x Parameters x Result), the possible choices for Operation are:

encrypt
decrypt
generateKey
deriveKey
sign
*wrap*
*unwrap*

Each of these operations is named exactly the same as a corresponding crypto.subtle method EXCEPT for wrap/unwrap.

For consistency I suggest renaming:
  "wrap" --> "wrapKey"
  "unwrap" --> "unwrapKey".

See "18.6. RSA-OAEP" for an example.
Comment 1 Eric Roman 2013-07-03 00:12:22 UTC
This also applies to the KeyUsage enumerated values, which lists "wrap" and "unwrap". Would be consistent if these names corresponded with the operation on crypto.subtle
Comment 2 Ryan Sleevi 2013-07-03 23:20:13 UTC
Fixed in https://dvcs.w3.org/hg/webcrypto-api/rev/ec111797d17a