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; |