Skip to content

Commit d278fcb

Browse files
Explicitly set CryptoKey.type to "secret" in AES and HMAC operations (#378)
Set `CryptoKey.type` to "secret" in the generate key and import key operations of AES and HMAC. These are strongly suggested to be "secret" anyway, per the description of https://w3c.github.io/webcrypto/#dom-keytype. However, it seems best to set them explicitly, as is done in the other algorithms.
1 parent d68a54a commit d278fcb

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

spec/Overview.html

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10226,6 +10226,12 @@ <h4>Operations</h4>
1022610226
|normalizedAlgorithm|.
1022710227
</p>
1022810228
</li>
10229+
<li>
10230+
<p>
10231+
Set the {{CryptoKey/[[type]]}} internal slot of
10232+
|key| to {{KeyType/"secret"}}.
10233+
</p>
10234+
</li>
1022910235
<li>
1023010236
<p>
1023110237
Set the {{CryptoKey/[[algorithm]]}} internal
@@ -10379,6 +10385,12 @@ <h4>Operations</h4>
1037910385
value |data|.
1038010386
</p>
1038110387
</li>
10388+
<li>
10389+
<p>
10390+
Set the {{CryptoKey/[[type]]}} internal slot of
10391+
|key| to {{KeyType/"secret"}}.
10392+
</p>
10393+
</li>
1038210394
<li>
1038310395
<p>
1038410396
Let |algorithm| be a new
@@ -10760,6 +10772,12 @@ <h4>Operations</h4>
1076010772
|normalizedAlgorithm|.
1076110773
</p>
1076210774
</li>
10775+
<li>
10776+
<p>
10777+
Set the {{CryptoKey/[[type]]}} internal slot of
10778+
|key| to {{KeyType/"secret"}}.
10779+
</p>
10780+
</li>
1076310781
<li>
1076410782
<p>
1076510783
Set the {{CryptoKey/[[algorithm]]}} internal
@@ -10914,6 +10932,12 @@ <h4>Operations</h4>
1091410932
object representing an AES key with value |data|.
1091510933
</p>
1091610934
</li>
10935+
<li>
10936+
<p>
10937+
Set the {{CryptoKey/[[type]]}} internal slot of
10938+
|key| to {{KeyType/"secret"}}.
10939+
</p>
10940+
</li>
1091710941
<li>
1091810942
<p>
1091910943
Let |algorithm| be a new
@@ -11378,6 +11402,12 @@ <h4>Operations</h4>
1137811402
|normalizedAlgorithm|.
1137911403
</p>
1138011404
</li>
11405+
<li>
11406+
<p>
11407+
Set the {{CryptoKey/[[type]]}} internal slot of
11408+
|key| to {{KeyType/"secret"}}.
11409+
</p>
11410+
</li>
1138111411
<li>
1138211412
<p>
1138311413
Set the {{CryptoKey/[[algorithm]]}} internal
@@ -11532,6 +11562,12 @@ <h4>Operations</h4>
1153211562
object representing an AES key with value |data|.
1153311563
</p>
1153411564
</li>
11565+
<li>
11566+
<p>
11567+
Set the {{CryptoKey/[[type]]}} internal slot of
11568+
|key| to {{KeyType/"secret"}}.
11569+
</p>
11570+
</li>
1153511571
<li>
1153611572
<p>
1153711573
Let |algorithm| be a new
@@ -11854,6 +11890,12 @@ <h4>Operations</h4>
1185411890
|normalizedAlgorithm|.
1185511891
</p>
1185611892
</li>
11893+
<li>
11894+
<p>
11895+
Set the {{CryptoKey/[[type]]}} internal slot of
11896+
|key| to {{KeyType/"secret"}}.
11897+
</p>
11898+
</li>
1185711899
<li>
1185811900
<p>
1185911901
Set the {{CryptoKey/[[algorithm]]}} internal
@@ -12008,6 +12050,12 @@ <h4>Operations</h4>
1200812050
representing an AES key with value |data|.
1200912051
</p>
1201012052
</li>
12053+
<li>
12054+
<p>
12055+
Set the {{CryptoKey/[[type]]}} internal slot of
12056+
|key| to {{KeyType/"secret"}}.
12057+
</p>
12058+
</li>
1201112059
<li>
1201212060
<p>
1201312061
Let |algorithm| be a new
@@ -12392,6 +12440,12 @@ <h4>Operations</h4>
1239212440
of |algorithm| to |hash|.
1239312441
</p>
1239412442
</li>
12443+
<li>
12444+
<p>
12445+
Set the {{CryptoKey/[[type]]}} internal slot of
12446+
|key| to {{KeyType/"secret"}}.
12447+
</p>
12448+
</li>
1239512449
<li>
1239612450
<p>
1239712451
Set the {{CryptoKey/[[algorithm]]}} internal
@@ -12646,6 +12700,12 @@ <h4>Operations</h4>
1264612700
bits of |data|.
1264712701
</p>
1264812702
</li>
12703+
<li>
12704+
<p>
12705+
Set the {{CryptoKey/[[type]]}} internal slot of
12706+
|key| to {{KeyType/"secret"}}.
12707+
</p>
12708+
</li>
1264912709
<li>
1265012710
<p>
1265112711
Let |algorithm| be a new

0 commit comments

Comments
 (0)