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

Unified Diff: LayoutTests/crypto/rsa-oaep-wrap-unwrap-aes.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
Index: LayoutTests/crypto/rsa-oaep-wrap-unwrap-aes.html
diff --git a/LayoutTests/crypto/rsa-oaep-wrap-unwrap-aes.html b/LayoutTests/crypto/rsa-oaep-wrap-unwrap-aes.html
index c52e2d50606f6a3e0cf21c928272ad6dec23b245..d5fa48a837bda3f6814f3ffb066ac4fcb21d72b1 100644
--- a/LayoutTests/crypto/rsa-oaep-wrap-unwrap-aes.html
+++ b/LayoutTests/crypto/rsa-oaep-wrap-unwrap-aes.html
@@ -39,9 +39,9 @@ var nonExtractable = false;
var importAlgorithm = {name: "rsa-oaep", hash: {name:"sha-1"}};
debug("Importing RSA keys...");
-crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(publicKeyJSON)), importAlgorithm, extractable, ["wrapKey"]).then(function(result) {
+crypto.subtle.importKey("jwk", publicKeyJSON, importAlgorithm, extractable, ["wrapKey"]).then(function(result) {
publicKey = result;
- return crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(privateKeyJSON)), importAlgorithm, extractable, ["unwrapKey"]);
+ return crypto.subtle.importKey("jwk", privateKeyJSON, importAlgorithm, extractable, ["unwrapKey"]);
}).then(function(result) {
privateKey = result;
« no previous file with comments | « LayoutTests/crypto/rsa-oaep-plaintext-length.html ('k') | LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698