Skip to content

Commit

Permalink
Explicitly set CryptoKey.type to "secret" in AES and HMAC operations (#…
Browse files Browse the repository at this point in the history
…378)

SHA: d278fcb
Reason: push, by twiss

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
BenWiederhake and github-actions[bot] committed Oct 25, 2024
1 parent 5dda32a commit 823b7cc
Showing 1 changed file with 90 additions and 10 deletions.
100 changes: 90 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@


<meta name="color-scheme" content="light">
<meta name="revision" content="d68a54a38e3ad420425a87e56c10d8d4a9e9face">
<meta name="revision" content="d278fcb5b33377df25be81ebd3b3bcee5c0e9918">
<meta name="description" content="This specification describes a JavaScript API for performing basic
cryptographic operations in web applications, such as hashing,
signature generation and verification, and encryption and decryption.
Expand Down Expand Up @@ -216,7 +216,7 @@
"id": "x690"
}
},
"gitRevision": "d68a54a38e3ad420425a87e56c10d8d4a9e9face",
"gitRevision": "d278fcb5b33377df25be81ebd3b3bcee5c0e9918",
"publishISODate": "2024-10-25T00:00:00.000Z",
"generatedSubtitle": "W3C Editor's Draft 25 October 2024"
}</script>
Expand Down Expand Up @@ -10394,6 +10394,12 @@ <h1 id="title" class="title">Web Cryptography API</h1>
<var>normalizedAlgorithm</var>.
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-67"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-6"><code>secret</code></a>".
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[algorithm]]" href="#dfn-CryptoKey-slot-algorithm" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-algorithm-93"><code>[[algorithm]]</code></a> internal
Expand Down Expand Up @@ -10547,6 +10553,12 @@ <h1 id="title" class="title">Web Cryptography API</h1>
value <var>data</var>.
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-68"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-7"><code>secret</code></a>".
</p>
</li>
<li>
<p>
Let <var>algorithm</var> be a new
Expand Down Expand Up @@ -10926,6 +10938,12 @@ <h1 id="title" class="title">Web Cryptography API</h1>
<var>normalizedAlgorithm</var>.
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-69"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-8"><code>secret</code></a>".
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[algorithm]]" href="#dfn-CryptoKey-slot-algorithm" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-algorithm-95"><code>[[algorithm]]</code></a> internal
Expand Down Expand Up @@ -11080,6 +11098,12 @@ <h1 id="title" class="title">Web Cryptography API</h1>
object representing an AES key with value <var>data</var>.
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-70"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-9"><code>secret</code></a>".
</p>
</li>
<li>
<p>
Let <var>algorithm</var> be a new
Expand Down Expand Up @@ -11542,6 +11566,12 @@ <h1 id="title" class="title">Web Cryptography API</h1>
<var>normalizedAlgorithm</var>.
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-71"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-10"><code>secret</code></a>".
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[algorithm]]" href="#dfn-CryptoKey-slot-algorithm" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-algorithm-97"><code>[[algorithm]]</code></a> internal
Expand Down Expand Up @@ -11696,6 +11726,12 @@ <h1 id="title" class="title">Web Cryptography API</h1>
object representing an AES key with value <var>data</var>.
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-72"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-11"><code>secret</code></a>".
</p>
</li>
<li>
<p>
Let <var>algorithm</var> be a new
Expand Down Expand Up @@ -12018,6 +12054,12 @@ <h1 id="title" class="title">Web Cryptography API</h1>
<var>normalizedAlgorithm</var>.
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-73"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-12"><code>secret</code></a>".
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[algorithm]]" href="#dfn-CryptoKey-slot-algorithm" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-algorithm-99"><code>[[algorithm]]</code></a> internal
Expand Down Expand Up @@ -12172,6 +12214,12 @@ <h1 id="title" class="title">Web Cryptography API</h1>
representing an AES key with value <var>data</var>.
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-74"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-13"><code>secret</code></a>".
</p>
</li>
<li>
<p>
Let <var>algorithm</var> be a new
Expand Down Expand Up @@ -12550,6 +12598,12 @@ <h1 id="title" class="title">Web Cryptography API</h1>
of <var>algorithm</var> to <var>hash</var>.
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-75"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-14"><code>secret</code></a>".
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[algorithm]]" href="#dfn-CryptoKey-slot-algorithm" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-algorithm-103"><code>[[algorithm]]</code></a> internal
Expand Down Expand Up @@ -12803,6 +12857,12 @@ <h1 id="title" class="title">Web Cryptography API</h1>
bits of <var>data</var>.
</p>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-76"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-15"><code>secret</code></a>".
</p>
</li>
<li>
<p>
Let <var>algorithm</var> be a new
Expand Down Expand Up @@ -13297,8 +13357,8 @@ <h1 id="title" class="title">Web Cryptography API</h1>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-67"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-6"><code>secret</code></a>".
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-77"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-16"><code>secret</code></a>".
</p>
</li>
<li>
Expand Down Expand Up @@ -13496,8 +13556,8 @@ <h1 id="title" class="title">Web Cryptography API</h1>
</li>
<li>
<p>
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-68"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-7"><code>secret</code></a>".
Set the <a data-link-type="attribute" data-lt="[[type]]" href="#dfn-CryptoKey-slot-type" class="internalDFN" id="ref-for-dfn-CryptoKey-slot-type-78"><code>[[type]]</code></a> internal slot of
<var>key</var> to "<a data-link-type="idl" href="#dom-keytype-secret" class="internalDFN" id="ref-for-dom-keytype-secret-17"><code>secret</code></a>".
</p>
</li>
<li>
Expand Down Expand Up @@ -15067,9 +15127,19 @@ <h1 id="title" class="title">Web Cryptography API</h1>
</li><li>
<a href="#ref-for-dom-keytype-secret-5" title="§ 14.2.12 The unwrapKey method">§ 14.2.12 The unwrapKey method</a>
</li><li>
<a href="#ref-for-dom-keytype-secret-6" title="§ 31.4 Operations">§ 31.4 Operations</a>
<a href="#ref-for-dom-keytype-secret-6" title="§ 25.7 Operations">§ 25.7 Operations</a> <a href="#ref-for-dom-keytype-secret-7" title="Reference 2">(2)</a>
</li><li>
<a href="#ref-for-dom-keytype-secret-8" title="§ 26.4 Operations">§ 26.4 Operations</a> <a href="#ref-for-dom-keytype-secret-9" title="Reference 2">(2)</a>
</li><li>
<a href="#ref-for-dom-keytype-secret-10" title="§ 27.4 Operations">§ 27.4 Operations</a> <a href="#ref-for-dom-keytype-secret-11" title="Reference 2">(2)</a>
</li><li>
<a href="#ref-for-dom-keytype-secret-12" title="§ 28.3 Operations">§ 28.3 Operations</a> <a href="#ref-for-dom-keytype-secret-13" title="Reference 2">(2)</a>
</li><li>
<a href="#ref-for-dom-keytype-secret-14" title="§ 29.6 Operations">§ 29.6 Operations</a> <a href="#ref-for-dom-keytype-secret-15" title="Reference 2">(2)</a>
</li><li>
<a href="#ref-for-dom-keytype-secret-7" title="§ 32.4 Operations">§ 32.4 Operations</a>
<a href="#ref-for-dom-keytype-secret-16" title="§ 31.4 Operations">§ 31.4 Operations</a>
</li><li>
<a href="#ref-for-dom-keytype-secret-17" title="§ 32.4 Operations">§ 32.4 Operations</a>
</li>
</ul>
</div><div class="dfn-panel" hidden="" role="dialog" aria-modal="true" id="dfn-panel-for-dom-keytype-public" aria-label="Links in this document to definition: public">
Expand Down Expand Up @@ -15267,9 +15337,19 @@ <h1 id="title" class="title">Web Cryptography API</h1>
</li><li>
<a href="#ref-for-dfn-CryptoKey-slot-type-54" title="§ 24.4 Operations">§ 24.4 Operations</a> <a href="#ref-for-dfn-CryptoKey-slot-type-55" title="Reference 2">(2)</a> <a href="#ref-for-dfn-CryptoKey-slot-type-56" title="Reference 3">(3)</a> <a href="#ref-for-dfn-CryptoKey-slot-type-57" title="Reference 4">(4)</a> <a href="#ref-for-dfn-CryptoKey-slot-type-58" title="Reference 5">(5)</a> <a href="#ref-for-dfn-CryptoKey-slot-type-59" title="Reference 6">(6)</a> <a href="#ref-for-dfn-CryptoKey-slot-type-60" title="Reference 7">(7)</a> <a href="#ref-for-dfn-CryptoKey-slot-type-61" title="Reference 8">(8)</a> <a href="#ref-for-dfn-CryptoKey-slot-type-62" title="Reference 9">(9)</a> <a href="#ref-for-dfn-CryptoKey-slot-type-63" title="Reference 10">(10)</a> <a href="#ref-for-dfn-CryptoKey-slot-type-64" title="Reference 11">(11)</a> <a href="#ref-for-dfn-CryptoKey-slot-type-65" title="Reference 12">(12)</a> <a href="#ref-for-dfn-CryptoKey-slot-type-66" title="Reference 13">(13)</a>
</li><li>
<a href="#ref-for-dfn-CryptoKey-slot-type-67" title="§ 31.4 Operations">§ 31.4 Operations</a>
<a href="#ref-for-dfn-CryptoKey-slot-type-67" title="§ 25.7 Operations">§ 25.7 Operations</a> <a href="#ref-for-dfn-CryptoKey-slot-type-68" title="Reference 2">(2)</a>
</li><li>
<a href="#ref-for-dfn-CryptoKey-slot-type-69" title="§ 26.4 Operations">§ 26.4 Operations</a> <a href="#ref-for-dfn-CryptoKey-slot-type-70" title="Reference 2">(2)</a>
</li><li>
<a href="#ref-for-dfn-CryptoKey-slot-type-71" title="§ 27.4 Operations">§ 27.4 Operations</a> <a href="#ref-for-dfn-CryptoKey-slot-type-72" title="Reference 2">(2)</a>
</li><li>
<a href="#ref-for-dfn-CryptoKey-slot-type-73" title="§ 28.3 Operations">§ 28.3 Operations</a> <a href="#ref-for-dfn-CryptoKey-slot-type-74" title="Reference 2">(2)</a>
</li><li>
<a href="#ref-for-dfn-CryptoKey-slot-type-75" title="§ 29.6 Operations">§ 29.6 Operations</a> <a href="#ref-for-dfn-CryptoKey-slot-type-76" title="Reference 2">(2)</a>
</li><li>
<a href="#ref-for-dfn-CryptoKey-slot-type-77" title="§ 31.4 Operations">§ 31.4 Operations</a>
</li><li>
<a href="#ref-for-dfn-CryptoKey-slot-type-68" title="§ 32.4 Operations">§ 32.4 Operations</a>
<a href="#ref-for-dfn-CryptoKey-slot-type-78" title="§ 32.4 Operations">§ 32.4 Operations</a>
</li>
</ul>
</div><div class="dfn-panel" hidden="" role="dialog" aria-modal="true" id="dfn-panel-for-dfn-CryptoKey-slot-extractable" aria-label="Links in this document to definition: [[extractable]]">
Expand Down

0 comments on commit 823b7cc

Please sign in to comment.