Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: third_party/WebKit/LayoutTests/crypto/subtle/hkdf/importKey-failures.html

Issue 2289033002: Require extractable=false for KDF import (Closed)
Patch Set: update another test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/crypto/subtle/hkdf/importKey-failures.html
diff --git a/third_party/WebKit/LayoutTests/crypto/subtle/hkdf/importKey-failures.html b/third_party/WebKit/LayoutTests/crypto/subtle/hkdf/importKey-failures.html
index b010c4de4b49250ffe5a85b57e5a0ae8cf9cc5f5..3dc607506800711ea696c2910e895aaad9fb8022 100644
--- a/third_party/WebKit/LayoutTests/crypto/subtle/hkdf/importKey-failures.html
+++ b/third_party/WebKit/LayoutTests/crypto/subtle/hkdf/importKey-failures.html
@@ -13,7 +13,7 @@ description("Test inputs to HKDF importKey()");
jsTestIsAsync = true;
-var extractable = true;
+var extractable = false;
rawBytes = new Uint8Array([1, 2]);
var p = Promise.resolve(null);
@@ -42,6 +42,11 @@ p.then(function() {
return crypto.subtle.importKey("raw", rawBytes, "HKDF", extractable, []);
}).then(failAndFinishJSTest, function(result) {
logError(result);
+
+ debug("\nimportKey() with extractable=true ...");
+ return crypto.subtle.importKey("raw", rawBytes, "HKDF", true, ['deriveKey']);
+}).then(failAndFinishJSTest, function(result) {
+ logError(result);
}).then(finishJSTest, failAndFinishJSTest);
</script>

Powered by Google App Engine
This is Rietveld 408576698