<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22571</bug_id>
          
          <creation_ts>2013-07-04 01:07:53 +0000</creation_ts>
          <short_desc>Invalid IDL - Dictionary members as attributes</short_desc>
          <delta_ts>2014-02-13 12:56:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Web Cryptography</product>
          <component>Web Cryptography API Document</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Sleevi">sleevi</reporter>
          <assigned_to name="Ryan Sleevi">sleevi</assigned_to>
          <cc>ap</cc>
    
    <cc>chris</cc>
    
    <cc>israelh</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90312</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2013-07-04 01:07:53 +0000</bug_when>
    <thetext>Both the Key object and the CryptoOperation object expose dictionary attributes - &apos;algorithm&apos;

Per http://dev.w3.org/2006/webapi/WebIDL/#idl-attributes , attributes MUST NOT be sequences, dictionaries, or union types that have dictionaries or sequences as members.

One way to resolve this is to specify parallel interfaces for normalized algorithms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100521</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-02-13 12:56:25 +0000</bug_when>
    <thetext>I&apos;ve hopefully resolved this in https://dvcs.w3.org/hg/webcrypto-api/rev/2fa3494f0179

The Key object now exposes a KeyAlgorithm interface, rather than the Algorithm dictionary, and each of the Key types is meant to specify their minimal set of common parameters.

For example, an RSA key (whether public or private) includes the algorithm name, the public modulus length (in bits), and the public exponent. For algorithms which are &apos;tainted&apos; - eg: by hash algorithms, as in the case of PSS, SSA, and OAEP - additional properties - such as the Hash - are exposed.

There are still gaps in the normative requirements to specify exactly how to convert an Algorithm to a KeyAlgorithm, but hopefully this resolves the blocking concern. As such, I&apos;m marking this as FIXED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>