Skip to content

Commit

Permalink
Set CryptoKey.type to "secret" in AES and HMAC during importKey
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 562f93e commit 48ec43e
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 @@ -10385,6 +10385,12 @@ <h4>Operations</h4>
value |data|.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[type]]}} internal slot of
|key| to {{KeyType/"secret"}}.
</p>
</li>
<li>
<p>
Let |algorithm| be a new
Expand Down Expand Up @@ -10926,6 +10932,12 @@ <h4>Operations</h4>
object representing an AES key with value |data|.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[type]]}} internal slot of
|key| to {{KeyType/"secret"}}.
</p>
</li>
<li>
<p>
Let |algorithm| be a new
Expand Down Expand Up @@ -11550,6 +11562,12 @@ <h4>Operations</h4>
object representing an AES key with value |data|.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[type]]}} internal slot of
|key| to {{KeyType/"secret"}}.
</p>
</li>
<li>
<p>
Let |algorithm| be a new
Expand Down Expand Up @@ -12032,6 +12050,12 @@ <h4>Operations</h4>
representing an AES key with value |data|.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[type]]}} internal slot of
|key| to {{KeyType/"secret"}}.
</p>
</li>
<li>
<p>
Let |algorithm| be a new
Expand Down Expand Up @@ -12676,6 +12700,12 @@ <h4>Operations</h4>
bits of |data|.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[type]]}} internal slot of
|key| to {{KeyType/"secret"}}.
</p>
</li>
<li>
<p>
Let |algorithm| be a new
Expand Down

0 comments on commit 48ec43e

Please sign in to comment.