Skip to content

Commit

Permalink
Set CryptoKey.type to "secret" in AES and HMAC during generateKey
Browse files Browse the repository at this point in the history
These are strongly suggested to be 'secret' anyway, per this description:
https://w3c.github.io/webcrypto/#dom-keytype

However, it seems wiser to define this explicitly, instead of hoping for the best.
  • Loading branch information
BenWiederhake committed Oct 25, 2024
1 parent d68a54a commit 420bb94
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions spec/Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -10226,6 +10226,12 @@ <h4>Operations</h4>
|normalizedAlgorithm|.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[type]]}} internal slot of
|key| to {{KeyType/"secret"}}.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[algorithm]]}} internal
Expand Down Expand Up @@ -10760,6 +10766,12 @@ <h4>Operations</h4>
|normalizedAlgorithm|.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[type]]}} internal slot of
|key| to {{KeyType/"secret"}}.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[algorithm]]}} internal
Expand Down Expand Up @@ -11378,6 +11390,12 @@ <h4>Operations</h4>
|normalizedAlgorithm|.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[type]]}} internal slot of
|key| to {{KeyType/"secret"}}.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[algorithm]]}} internal
Expand Down Expand Up @@ -11854,6 +11872,12 @@ <h4>Operations</h4>
|normalizedAlgorithm|.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[type]]}} internal slot of
|key| to {{KeyType/"secret"}}.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[algorithm]]}} internal
Expand Down Expand Up @@ -12392,6 +12416,12 @@ <h4>Operations</h4>
of |algorithm| to |hash|.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[type]]}} internal slot of
|key| to {{KeyType/"secret"}}.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[algorithm]]}} internal
Expand Down

0 comments on commit 420bb94

Please sign in to comment.