Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
141 changes: 70 additions & 71 deletions spec/Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -1415,14 +1415,6 @@ <h4>The encrypt method</h4>
respectively.
</p>
</li>
<li>
<p>
Let |data| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the `data` parameter passed to the
{{SubtleCrypto/encrypt()}} method.
</p>
</li>
<li>
<p>
Let |normalizedAlgorithm| be the result of
Expand All @@ -1437,6 +1429,14 @@ <h4>The encrypt method</h4>
|normalizedAlgorithm|.
</p>
</li>
<li>
<p>
Let |data| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the `data` parameter passed to the
{{SubtleCrypto/encrypt()}} method.
</p>
</li>
<li>
<p>
Let |realm| be the [= relevant realm =] of [= this =].
Expand Down Expand Up @@ -1522,14 +1522,6 @@ <h4>The decrypt method</h4>
respectively.
</p>
</li>
<li>
<p>
Let |data| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the `data` parameter passed to the
{{SubtleCrypto/decrypt()}} method.
</p>
</li>
<li>
<p>
Let |normalizedAlgorithm| be the result of
Expand All @@ -1544,6 +1536,14 @@ <h4>The decrypt method</h4>
|normalizedAlgorithm|.
</p>
</li>
<li>
<p>
Let |data| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the `data` parameter passed to the
{{SubtleCrypto/decrypt()}} method.
</p>
</li>
<li>
<p>
Let |realm| be the [= relevant realm =] of [= this =].
Expand Down Expand Up @@ -1629,14 +1629,6 @@ <h4>The sign method</h4>
respectively.
</p>
</li>
<li>
<p>
Let |data| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the `data` parameter passed to the
{{SubtleCrypto/sign()}} method.
</p>
</li>
<li>
<p>
Let |normalizedAlgorithm| be the result of
Expand All @@ -1651,6 +1643,14 @@ <h4>The sign method</h4>
|normalizedAlgorithm|.
</p>
</li>
<li>
<p>
Let |data| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the `data` parameter passed to the
{{SubtleCrypto/sign()}} method.
</p>
</li>
<li>
<p>
Let |realm| be the [= relevant realm =] of [= this =].
Expand Down Expand Up @@ -1736,35 +1736,34 @@ <h4>The verify method</h4>
</li>
<li>
<p>
Let |signature| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the `signature` parameter passed to the
{{SubtleCrypto/verify()}} method.
Let |normalizedAlgorithm| be the result of
<a href="#dfn-normalize-an-algorithm">normalizing an algorithm</a>, with
`alg` set to |algorithm| and `op` set to
"`verify`".
</p>
</li>
<li>
<p>
Let |data| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the `data` parameter passed to the
{{SubtleCrypto/verify()}} method.
If an error occurred, return a Promise rejected with
|normalizedAlgorithm|.
</p>
</li>
<li>
<p>
Let |normalizedAlgorithm| be the result of
<a href="#dfn-normalize-an-algorithm">normalizing an algorithm</a>, with
`alg` set to |algorithm| and `op` set to
"`verify`".
Let |signature| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the `signature` parameter passed to the
{{SubtleCrypto/verify()}} method.
</p>
</li>
<li>
<p>
If an error occurred, return a Promise rejected with
|normalizedAlgorithm|.
Let |data| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the `data` parameter passed to the
{{SubtleCrypto/verify()}} method.
</p>
</li>

<li>
<p>
Let |realm| be the [= relevant realm =] of [= this =].
Expand Down Expand Up @@ -1843,14 +1842,6 @@ <h4>The digest method</h4>
{{SubtleCrypto/digest()}} method.
</p>
</li>
<li>
<p>
Let |data| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the `data` parameter passed to the
{{SubtleCrypto/digest()}} method.
</p>
</li>
<li>
<p>
Let |normalizedAlgorithm| be the result of
Expand All @@ -1865,6 +1856,14 @@ <h4>The digest method</h4>
|normalizedAlgorithm|.
</p>
</li>
<li>
<p>
Let |data| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the `data` parameter passed to the
{{SubtleCrypto/digest()}} method.
</p>
</li>
<li>
<p>
Let |realm| be the [= relevant realm =] of [= this =].
Expand Down Expand Up @@ -2298,6 +2297,20 @@ <h4>The importKey method</h4>
`extractable` and `keyUsages` parameters passed to the {{SubtleCrypto/importKey()}} method, respectively.
</p>
</li>
<li>
<p>
Let |normalizedAlgorithm| be the result of
<a href="#dfn-normalize-an-algorithm">normalizing an algorithm</a>, with
`alg` set to |algorithm| and `op` set to
"`importKey`".
</p>
</li>
<li>
<p>
If an error occurred, return a Promise rejected with
|normalizedAlgorithm|.
</p>
</li>
<li>
<dl class="switch">
<dt>
Expand Down Expand Up @@ -2345,20 +2358,6 @@ <h4>The importKey method</h4>
</dd>
</dl>
</li>
<li>
<p>
Let |normalizedAlgorithm| be the result of
<a href="#dfn-normalize-an-algorithm">normalizing an algorithm</a>, with
`alg` set to |algorithm| and `op` set to
"`importKey`".
</p>
</li>
<li>
<p>
If an error occurred, return a Promise rejected with
|normalizedAlgorithm|.
</p>
</li>
<li>
<p>
Let |realm| be the [= relevant realm =] of [= this =].
Expand Down Expand Up @@ -2751,7 +2750,7 @@ <h4>The unwrapKey method</h4>
MUST perform the following steps:
</p>
<ol>
<li>
<li>
<p>
Let |format|, |unwrappingKey|,
|algorithm|, |unwrappedKeyAlgorithm|,
Expand All @@ -2764,15 +2763,6 @@ <h4>The unwrapKey method</h4>
respectively.
</p>
</li>
<li>
<p>
Let |wrappedKey| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the
`wrappedKey` parameter passed to the
{{SubtleCrypto/unwrapKey()}} method.
</p>
</li>
<li>
<p>
Let |normalizedAlgorithm| be the result of
Expand Down Expand Up @@ -2808,6 +2798,15 @@ <h4>The unwrapKey method</h4>
|normalizedKeyAlgorithm|.
</p>
</li>
<li>
<p>
Let |wrappedKey| be the result of
[= get a copy of the buffer source |
getting a copy of the bytes held by =] the
`wrappedKey` parameter passed to the
{{SubtleCrypto/unwrapKey()}} method.
</p>
</li>
<li>
<p>
Let |realm| be the [= relevant realm =] of [= this =].
Expand Down