Skip to content

Commit 85a4826

Browse files
Remove dead writes to CryptoKey.extractable in HKDF/PBKDF2.importKey (#379)
When these steps execute, it is know due to an earlier step that the argument 'extractable' is false, and that the internal slot will not be read before being overwritten again by SubtleCrypto.importKey: https://w3c.github.io/webcrypto/#SubtleCrypto-method-importKey Therefore, it is a dead write. Removing it makes it more similar to all other importKey operations, which do not write the [[extractable]] internal slot either.
1 parent d278fcb commit 85a4826

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

spec/Overview.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13206,12 +13206,6 @@ <h4>Operations</h4>
1320613206
|key| to {{KeyType/"secret"}}.
1320713207
</p>
1320813208
</li>
13209-
<li>
13210-
<p>
13211-
Set the {{CryptoKey/[[extractable]]}} internal slot of
13212-
|key| to `false`.
13213-
</p>
13214-
</li>
1321513209
<li>
1321613210
<p>
1321713211
Let |algorithm| be a new
@@ -13407,12 +13401,6 @@ <h4>Operations</h4>
1340713401
|key| to {{KeyType/"secret"}}.
1340813402
</p>
1340913403
</li>
13410-
<li>
13411-
<p>
13412-
Set the {{CryptoKey/[[extractable]]}} internal slot of
13413-
|key| to `false`.
13414-
</p>
13415-
</li>
1341613404
<li>
1341713405
<p>
1341813406
Let |algorithm| be a new {{KeyAlgorithm}}

0 commit comments

Comments
 (0)