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

Unified Diff: LayoutTests/crypto/aes-cbc-wrap-rsa-non-extractable.html

Issue 336173002: [webcrypto] Require importKey() for JWK to provide data as a Javascript object rather than a JSON a… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update additional tests Created 6 years, 6 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
« no previous file with comments | « LayoutTests/crypto/aes-cbc-wrap-rsa.html ('k') | LayoutTests/crypto/aes-export-key.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/aes-cbc-wrap-rsa-non-extractable.html
diff --git a/LayoutTests/crypto/aes-cbc-wrap-rsa-non-extractable.html b/LayoutTests/crypto/aes-cbc-wrap-rsa-non-extractable.html
index 55fa4089c521d0a2f6d30fc960b734256cbcf0d5..8fecaa28954ab9ccb50725159e1918e0760778bd 100644
--- a/LayoutTests/crypto/aes-cbc-wrap-rsa-non-extractable.html
+++ b/LayoutTests/crypto/aes-cbc-wrap-rsa-non-extractable.html
@@ -25,13 +25,12 @@ var publicKeyJSON = {
use: "sig"
};
-var jwkKeyAsArrayBuffer = asciiToUint8Array(JSON.stringify(publicKeyJSON));
var wrappingKeyOctets = hexStringToUint8Array("2a00e0e776e94e4dc89bf947cebdebe1");
debug("Importing a key to wrap...");
var importAlgorithm = {name: 'RSASSA-PKCS1-v1_5', hash: {name: 'sha-256'} };
-crypto.subtle.importKey("jwk", jwkKeyAsArrayBuffer, importAlgorithm, nonExtractable, ["verify"]).then(function(result) {
+crypto.subtle.importKey("jwk", publicKeyJSON, importAlgorithm, nonExtractable, ["verify"]).then(function(result) {
key = result;
shouldBe("key.algorithm.name", "'RSASSA-PKCS1-v1_5'");
debug("Importing a key encryption key...");
« no previous file with comments | « LayoutTests/crypto/aes-cbc-wrap-rsa.html ('k') | LayoutTests/crypto/aes-export-key.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698