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

Unified Diff: LayoutTests/crypto/rsa-oaep-plaintext-length.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/rsa-oaep-key-manipulation.html ('k') | LayoutTests/crypto/rsa-oaep-wrap-unwrap-aes.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/rsa-oaep-plaintext-length.html
diff --git a/LayoutTests/crypto/rsa-oaep-plaintext-length.html b/LayoutTests/crypto/rsa-oaep-plaintext-length.html
index fe14caed009bfa1df1e361749a20566cad0a30ad..fa5bb41c2ac218cf4c4a87251b216b45351dd50b 100644
--- a/LayoutTests/crypto/rsa-oaep-plaintext-length.html
+++ b/LayoutTests/crypto/rsa-oaep-plaintext-length.html
@@ -37,9 +37,9 @@ var extractable = true;
var nonExtractable = false;
debug("Importing RSA keys...");
-crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(publicKeyJSON)), {name:"rsa-oaep", hash:{name: "sha-1"}}, extractable, ["encrypt"]).then(function(result) {
+crypto.subtle.importKey("jwk", publicKeyJSON, {name:"rsa-oaep", hash:{name: "sha-1"}}, extractable, ["encrypt"]).then(function(result) {
publicKey = result;
- return crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(privateKeyJSON)), {name:"rsa-oaep", hash:{name: "sha-1"}}, extractable, ["decrypt"]);
+ return crypto.subtle.importKey("jwk", privateKeyJSON, {name:"rsa-oaep", hash:{name: "sha-1"}}, extractable, ["decrypt"]);
}, failAndFinishJSTest).then(function(result) {
privateKey = result;
« no previous file with comments | « LayoutTests/crypto/rsa-oaep-key-manipulation.html ('k') | LayoutTests/crypto/rsa-oaep-wrap-unwrap-aes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698