ISSUE-42: Flatten AlgorithmParameters

Flatten AlgorithmParameters

State:
CLOSED
Product:
design for Web Crypto API
Raised by:
Richard Barnes
Opened on:
2013-04-18
Description:
The current spec requires that algorithm parameters be encapsulated in a "params" field within an algorithm identifier. For example:
OLD: { name: "AES-GCM", params: { iv: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], tlen: 128 } }
NEW: { name: "AES-GCM", iv: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], tlen: 128 }

The only reason this extra complexity would be necessary is if we expected an algorithm to need a parameter called "name". This does not seem very likely; I see no problem making "name" a reserved word for the purpose of algorithm parameters.

This requires the useless interface "dictionary AlgorithmParameters {};" from which individual algorithms specialize. Proposed revisions to WebIDL:
-- Remove the AlgorithmParameters definition
-- Remove the "AlgorithmParameters params;" from the Algorithm interface
-- Change all descendants of AlgorithmParameters to instead inherit from Algorithm

[Copied from mailing list <http://lists.w3.org/Archives/Public/public-webcrypto/2013Mar/0099.html>]
Related Actions Items:
No related actions
Related emails:
  1. Re: Defaults: Getting concrete (round 2) (from rbarnes@bbn.com on 2013-04-23)
  2. Re: Defaults: Getting concrete (round 2) (from rbarnes@bbn.com on 2013-04-23)
  3. Re: PROPOSAL for ISSUE-12: Should the API distinguish between algorithm and operation parameters? (from sleevi@google.com on 2013-04-22)
  4. Re: PROPOSAL for ISSUE-12: Should the API distinguish between algorithm and operation parameters? (from watsonm@netflix.com on 2013-04-22)
  5. Re: PROPOSAL for ISSUE-12: Should the API distinguish between algorithm and operation parameters? (from sleevi@google.com on 2013-04-22)
  6. PROPOSAL for ISSUE-12: Should the API distinguish between algorithm and operation parameters? (from watsonm@netflix.com on 2013-04-22)
  7. crypto-ISSUE-42: Flatten AlgorithmParameters [design for Web Crypto API] (from sysbot+tracker@w3.org on 2013-04-18)
  8. Re: crypto-ISSUE-42: Flatten AlgorithmParameters [design for Web Crypto API] (from rbarnes@bbn.com on 2013-04-17)

Related notes:

No additional notes.

Display change log ATOM feed


Chair, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 42.html,v 1.1 2017/02/13 16:16:52 ted Exp $