Overview.html
author David Dahl <ddahl@mozilla.com>
Fri, 25 Jan 2013 10:22:21 -0600
changeset 1 f58f6b8aa0a0
parent 0 30d26e80c3e9
child 3 be02e044185a
permissions -rw-r--r--
Added protect and unprotect, changed some args from typedarray to DOMstring
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
     1
<!DOCTYPE html>
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
     2
<html>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
     3
  <head>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
     4
    <title>WebCrypto High-level API</title>
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
     5
    <meta http-equiv='Content-Type' content='text/html;charset=utf-8'/>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
     6
    <style>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
     7
      table {
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
     8
        border-collapse: collapse;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
     9
        border-spacing: 0px;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    10
        margin-top: +1em;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    11
        margin-bottom: +1em;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    12
        border-color: black;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    13
        font-family: "Courier New", Inconsolata, "Bitstream Charter";
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    14
        font-size: 90%;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    15
      }
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    16
      th {
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    17
        background-color:DimGray;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    18
        color:white;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    19
        font-weight: normal;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    20
      }
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    21
      .sub-th {
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    22
        background-color: Linen;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    23
        font-style: italic;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    24
      }
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    25
      .centered {
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    26
        text-align: center;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    27
      }
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    28
      .first-column {
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    29
        background-color: Beige;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    30
        font-weight: bold;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    31
      }
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    32
      .excluded-first-column {
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    33
        background-color: DarkGray;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    34
        text-decoration: line-through;
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    35
      }
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    36
    </style>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    37
    
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    38
    <!-- 
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    39
      === NOTA BENE ===
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    40
      For the three scripts below, if your spec resides on dev.w3 you can check them
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    41
      out in the same tree and use relative links so that they'll work offline,
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    42
     -->
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    43
    <script src='http://www.w3.org/Tools/respec/respec-w3c-common' class='remove' async></script>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    44
    <script type="text/javascript" class='remove'>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    45
      var respecConfig = {  specStatus: "WD",
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    46
                            shortName: "webcrypto-high-level-api",
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    47
                            editors: [{ name: "David Dahl", 
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    48
                                        mailto: "ddahl@mozilla.com", 
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    49
                                        company: "Mozilla Corporation", 
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    50
                                        companyURL: "http://www.mozilla.org/"} ],
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    51
                            publishDate: "2013-01-25",
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    52
                            previousPublishDate:  "2013-01-22",
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    53
                            // edEnd:  "",
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    54
                            previousMaturity: "ED",
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    55
                            edDraftURI:   "https://dvcs.w3.org/hg/webcrypto-highlevel/raw-file/tip/Overview.html",
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    56
                            wg:           "Web Cryptography WG",
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    57
                            wgURI:        "http://www.w3.org/2012/webcrypto/",
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    58
                            wgPublicList: "public-webcrypto",
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    59
                            wgPatentURI:  "http://www.w3.org/2004/01/pp-impl/54174/status",
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    60
                            localBiblio : { "WEBCRYPTO" : "Ryan Sleevi, David Dahl. <a href=\"http://www.w3.org/TR/WebCryptoAPI/\"><cite>Web Cryptography API.</cite></a> W3C Working Draft (Work in progress.) URL: <a href=\"http://www.w3.org/TR/WebCryptoAPI/\">http://www.w3.org/TR/WebCryptoAPI/</a> "}
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    61
                        };
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    62
    </script>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    63
  </head>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    64
  <body>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    65
    <section id='abstract'>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    66
      <p>This specification describes a JavaScript API for public key generation, encryption, decryption, digital signature generation and verification, and hashing.
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    67
      </p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    68
    </section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    69
    
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    70
    <section id="sotd">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    71
      <p>This document is the First Public Working Draft of the WebCrypto High-level API recommendation. It defines an API that provides access to named origin-specific pre-provisioned keys.</p>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    72
    </section>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    73
    
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    74
    <section class="informative">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    75
      <h2>Introduction</h2>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    76
      <p>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    77
        The Web Cryptography API [[!WEBCRYPTO]] describes a JavaScript API for performing basic cryptographic operations in web applications. The Web Cryoptography API is not a simple API geared towards the average web developer, rather its use requires near-expert knowledge of cryptography. The 'High-level' API described here is designed around fewer use cases and is not concerned with backward-compatibility with existing crypto systems and protocols. This API leverages the IETF JOSE JWA, JWK and JWE JSON formats for algorithms, public keys and cipher data.
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    78
      </p>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    79
    </section>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    80
    
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    81
    <section>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    82
        <h2>Use cases</h2>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    83
        <section>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    84
          <h3>Security of data at rest</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    85
          <p>TODO</p>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    86
        </section>
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    87
        <section>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    88
          <h3>Web-based messaging</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    89
          <p>TODO</p>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    90
        </section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    91
    </section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    92
    
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    93
    <section id="conformance">
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    94
      <p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    95
          The following conformance classes are defined by this specification:
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    96
        </p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    97
        <dl>
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
    98
          <dt><dfn>conforming user agent</dfn></dt>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
    99
          <dd>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   100
            <p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   101
              A user agent is considered to be a conforming user agent
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   102
              if it satisfies all of the MUST-, REQUIRED- and SHALL-level
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   103
              criteria in this specification that apply to implementation. This specification
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   104
              uses both the terms "conforming user agent" and "user agent" to refer to this
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   105
              product class.
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   106
            </p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   107
            <p>
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   108
              User agents MAY implement algorithms in this
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   109
              specification in any way desired, so long as the end result is indistinguishable
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   110
              from the result that would be obtained from the specification's algorithms.
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   111
            </p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   112
          </dd>         
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   113
        </dl>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   114
        <p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   115
          User agents that use ECMAScript to implement the APIs defined in this specification
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   116
          MUST implement them in a manner consistent with the
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   117
          ECMAScript Bindings defined in the Web IDL specification [[!WEBIDL]]
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   118
          as this specification uses that specification and terminology.
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   119
        </p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   120
      
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   121
    </section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   122
    
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   123
    <section id="scope" class="informative">
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   124
      <h2>Scope</h2>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   125
      <p>The considerations in the Scope section of [[!WEBCRYPTO]] apply to this specification as well.
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   126
      </p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   127
    </section>
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   128
    <section class="informative">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   129
      <h2>Privacy considerations</h2>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   130
      <p>The Privacy considerations of [[!WEBCRYPTO]] apply to this specification.</p>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   131
      <section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   132
          <p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   133
            TBD
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   134
          </p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   135
      </section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   136
    </section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   137
    
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   138
    <section class="section" id="dependencies">
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   139
      <h3>Dependencies</h3>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   140
      <p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   141
        This specification relies on several other underlying specifications. 
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   142
      </p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   143
      <dl>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   144
        <dt>HTML5</dt>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   145
        <dd>The terms and algorithms
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   146
          <dfn title="Window"><code>Window</code></dfn>,
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   147
          <dfn title="Function"><code>Function</code></dfn>,
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   148
          <dfn>origin</dfn>, <dfn>same origin</dfn>, <dfn>structured clone</dfn>,
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   149
          <dfn>structured clone algorithm</dfn>, <dfn>task</dfn>, <dfn>task source</dfn>, 
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   150
          <dfn title="queue-a-task">queue a task</dfn>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   151
          and <dfn title="fire-a-simple-event">fire a simple event</dfn> are defined by the HTML 5 
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   152
          specification [[!HTML5]].
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   153
        </dd>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   154
        <dt>WebIDL</dt>
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   155
        <dd>Many of the interface definitions and all of the IDL in this spec depends on [[!WEBIDL]].</dd>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   156
        <dt>WebWorkers</dt>
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   157
        <dd>The term <dfn title="WorkerGlobalScope"><a class="externalDFN"><code>WorkerGlobalScope</code></a></dfn> is defined by
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   158
        the WebWorkers specification [[!WEBWORKERS]].</dd>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   159
      </dl>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   160
    </section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   161
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   162
    <section>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   163
      <h2>API definition</h2>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   164
      <section class="informative">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   165
        <h3>Overview</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   166
        <p>This specification defines a new <a><code>highlevel</code></a> attribute on the <a><code>Window.crypto</code></a> and <a><code>WorkerGlobalScope</code></a> objects. 
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   167
      </section>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   168
      
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   169
      <section>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   170
        <h3>Extension of Crypto interface</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   171
        <dl title="partial interface Crypto" class="idl">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   172
          <dt>readonly attribute Highlevel highlevel</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   173
          <dd>The object that exposes the high-level API</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   174
      </dl>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   175
      </section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   176
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   177
      <section>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   178
        <h3>Highlevel interface</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   179
        <dl title="interface Highlevel" class="idl">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   180
          <dt>void getPublicKey (in DOMString aJWKID)</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   181
          <dd>Get public key by an ID if it exists</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   182
          <dt>[TreatNonCallableAsNull] attribute Function? onGetKeypair</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   183
          <dd>onGetKeypair event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   184
          <dt>void createKeyPair (in DOMString aJoseAlgID)</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   185
          <dd>Generate a public keypair</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   186
          <dt>[TreatNonCallableAsNull] attribute Function? onCreateKeypair</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   187
          <dd>onCreateKeypair event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   188
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   189
          <dt>void encryptAndSign (in DOMSring aPlainText, in DOMString aRecipientJWK, in DOMString aSenderJWKID)</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   190
          <dd>Perform encryption, signing the encrypted data</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   191
          <dt>[TreatNonCallableAsNull] attribute Function? onEncryptComplete</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   192
          <dd>onEncryptComplete event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   193
          <dt>[TreatNonCallableAsNull] attribute Function? onEncryptError</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   194
          <dd>onEncryptError event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   195
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   196
          <dt>void verifyAndDecrypt (in DOMString aReceivedJWE, in DOMString aSenderJWK, in DOMString aRecipientJWKID)</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   197
          <dd>Verify signature and decrypttion method</dd>          
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   198
          <dt>[TreatNonCallableAsNull] attribute Function? onDecryptComplete</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   199
          <dd>onDecryptComplete event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   200
          <dt>[TreatNonCallableAsNull] attribute Function? onDecryptError</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   201
          <dd>onDecryptError event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   202
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   203
          <dt>void protect (in DOMString aPlainText, in DOMString aJWAlgID)</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   204
          <dd>Symmetric encryption of a string (a key is generated on each use)</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   205
          <dt>[TreatNonCallableAsNull] attribute Function? onProtectComplete</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   206
          <dd>onProtectComplete event handler, ciphertext and keyID are passed to this function</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   207
          <dt>[TreatNonCallableAsNull] attribute Function? onProtectError</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   208
          <dd>onProtectError event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   209
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   210
          <dt>void unprotect (in DOMString aKeyID, in DOMString aPlainText)</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   211
          <dd>Symmetric decryption of a string</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   212
          <dt>[TreatNonCallableAsNull] attribute Function? onUnprotectComplete</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   213
          <dd>onUnprotectComplete event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   214
          <dt>[TreatNonCallableAsNull] attribute Function? onUnprotectError</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   215
          <dd>onUnprotectError event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   216
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   217
          <dt>void sign(in aDOMString aClearData, in DOMString aJWKID)</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   218
          <dd>Create a digital signature</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   219
          <dt>[TreatNonCallableAsNull] attribute Function? onSignComplete</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   220
          <dd>onSignComplete event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   221
          <dt>[TreatNonCallableAsNull] attribute Function? onSignError</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   222
          <dd>onSignError event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   223
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   224
          <dt>void verify (in DOMString aJWS, in DOMString aDataToVerify, in DOMString aJWK)</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   225
          <dd>Verify a digital signature</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   226
          <dt>[TreatNonCallableAsNull] attribute Function? onVerifyComplete</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   227
          <dd>onVerifyComplete event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   228
          <dt>[TreatNonCallableAsNull] attribute Function? onVerifyError</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   229
          <dd>onVerifyError event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   230
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   231
          <dt>void hash(in DOMString aData)</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   232
          <dd>Create a cryptographic hash</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   233
          <dt>[TreatNonCallableAsNull] attribute Function? onHashComplete</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   234
          <dd>onHashComplete event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   235
          <dt>[TreatNonCallableAsNull] attribute Function? onHashError</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   236
          <dd>onHashError event handler</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   237
        </dl>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   238
      </section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   239
      
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   240
      <section>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   241
        <h3>Extension of WorkerGlobalScope interface</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   242
        <dl title="partial interface WorkerGlobalScope" class="idl">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   243
          <dt>readonly attribute Highlevel highlevel</dt>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   244
          <dd>The object that exposes the high-level API</dd>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   245
        </dl>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   246
      </section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   247
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   248
    </section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   249
    
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   250
    <section>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   251
      <h2>Examples</h2>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   252
      <h3>Keypair handling, generation</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   253
      <pre class="example sh_html sh_sourceCode">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   254
var myCurrentKeyPair = null;
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   255
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   256
function onGetKeypair(aKeypair)
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   257
{
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   258
  localStorage.setItem(aKeypair.id, aKeypair.publicKey);
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   259
}
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   260
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   261
var cryptoAPI = new window.crypto.highlevel();
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   262
cryptoAPI.onGetKeypair = onGetKeypair;
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   263
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   264
function onCreateKeypair(aKeypair)
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   265
{
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   266
  localStorage.setItem(aKeypair.id, aKeypair.publicKey);
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   267
  myCurrentKeyPair = aKeypair;
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   268
}
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   269
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   270
cryptoAPI.onCreateKeypair = onCreateKeypair;
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   271
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   272
cryptoAPI.createKeypair("RSA1_5");
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   273
</pre>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   274
      <h3>Public Key Encryption</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   275
<pre class="example sh_html sh_sourceCode">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   276
var plainText = "The rain in Spain falls mainly on the plain.";
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   277
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   278
function onEncryptComplete(aJWE, aPublicKey){
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   279
  // send cipher data to the server for storage, etc...
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   280
}
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   281
cryptoAPI.onEncryptComplete = onEncryptComplete;
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   282
cryptoAPI.encryptAndSign(plainText, RECIPIENT_JWK, SENDER_JWK_ID);
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   283
</pre>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   284
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   285
<h3>Public Key Decryption</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   286
<pre class="example sh_html sh_sourceCode">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   287
function onDecryptComplete(aPlainText) {
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   288
  // read and save plain text
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   289
}
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   290
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   291
function onDecryptError(aException) {
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   292
  // examine exception raised, re-throw or throw a new error
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   293
}
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   294
cryptoAPI.onDecryptError = onDecryptError;
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   295
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   296
// we have recvd a new cipher message...
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   297
// set the event handler
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   298
cryptoAPI.onDecryptComplete = onDecryptComplete;
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   299
// verfiy and decrypt - if verification or decryption fails, onDecryptError is fired
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   300
cryptoAPI.verifyAndDecrypt(RECEIVED_JWE, SENDER_JWK, RECIPIENT_JWK_ID);
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   301
</pre>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   302
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   303
<h3>Symmetric Encryption</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   304
<pre class="example sh_html sh_sourceCode">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   305
function onProtectComplete(aCipherText, aKeyID) {
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   306
  // cipher text and the key ID are provided to this event handler
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   307
}
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   308
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   309
function onProtectError(aException) {
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   310
  // examine exception or error message
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   311
}
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   312
cryptoAPI.onProtectError = onProtectError;
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   313
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   314
cryptoAPI.onProtectComplete = onProtectComplete;
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   315
// 
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   316
cryptoAPI.protect("s3kr3t m355ag3", "A256GCM");
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   317
</pre>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   318
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   319
<h3>Symmetric Decryption</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   320
<pre class="example sh_html sh_sourceCode">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   321
function onUnprotectComplete(aPlainText) {
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   322
  savePlainTextToLocalStorage(aPlainText);
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   323
}
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   324
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   325
function onUnprotectError(aException) {
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   326
  // examine exception or error message
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   327
}
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   328
cryptoAPI.onUnprotectError = onUnprotectError;
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   329
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   330
cryptoAPI.onUnprotectComplete = onUnprotectComplete;
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   331
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   332
cryptoAPI.unprotect(keyID, cipherString);
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   333
</pre>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   334
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   335
<h3>Signature creation</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   336
<pre class="example sh_html sh_sourceCode">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   337
var dataToSign = "This is some data to sign";
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   338
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   339
cryptoAPI.onSignComplete = function (aJWS) {
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   340
  // send the signature to the server, etc.
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   341
};
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   342
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   343
cryptoAPI.onSignError = function (aError) {
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   344
  // console.log(), etc.
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   345
};
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   346
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   347
cryptoAPI.sign(dataToSign, JWK_ID);
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   348
</pre>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   349
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   350
<h3>Signature Verification</h3>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   351
<pre class="example sh_html sh_sourceCode">
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   352
cryptoAPI.onVerifyComplete = function (aVerified) {
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   353
  // aVerified is a boolean
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   354
};
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   355
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   356
cryptoAPI.onVerifyError = function (aError) {
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   357
  // console.log(), etc.
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   358
};
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   359
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   360
cryptoAPI.verify(RECEIVED_JWS, SIGNER_JWK);        
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   361
</pre>        
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   362
      </section> 
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   363
    </section>
0
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   364
    <!--
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   365
    <section class='appendix'>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   366
      <h2>Acknowledgements</h2>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   367
      <p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   368
        Many thanks to ...
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   369
      </p>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   370
    </section>
30d26e80c3e9 initial commit of idl and examples using ReSpec
David Dahl <ddahl@mozilla.com>
parents:
diff changeset
   371
    -->
1
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   372
  </body>
f58f6b8aa0a0 Added protect and unprotect, changed some args from typedarray to DOMstring
David Dahl <ddahl@mozilla.com>
parents: 0
diff changeset
   373
</html>