Index: LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk.html |
diff --git a/LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk.html b/LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk.html |
index 2a0cb5e04fc059cd55a4024cbd4b9133971933a7..c0fbd38f13cc81b43e5b0d8001f7c380f8cd102e 100644 |
--- a/LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk.html |
+++ b/LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk.html |
@@ -36,7 +36,7 @@ var privateKeyJSON = { |
}; |
debug("Importing a public key..."); |
-crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(publicKeyJSON)), {name: "RSASSA-PKCS1-v1_5", hash: {name: "sha-256"}}, extractable, ["verify"]).then(function(result) { |
+crypto.subtle.importKey("jwk", publicKeyJSON, {name: "RSASSA-PKCS1-v1_5", hash: {name: "sha-256"}}, extractable, ["verify"]).then(function(result) { |
publicKey = result; |
shouldBe("publicKey.toString()", "'[object Key]'"); |
shouldBe("publicKey.type", "'public'"); |
@@ -46,7 +46,7 @@ crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(publicKeyJSON)), |
shouldBe("bytesToHexString(publicKey.algorithm.publicExponent)", "'010001'"); |
shouldBe("publicKey.algorithm.hash.name", "'SHA-256'"); |
debug("\nImporting a private key..."); |
- return crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(privateKeyJSON)), {name: "RSASSA-PKCS1-v1_5", hash: {name: "sha-256"}}, extractable, ["sign"]); |
+ return crypto.subtle.importKey("jwk", privateKeyJSON, {name: "RSASSA-PKCS1-v1_5", hash: {name: "sha-256"}}, extractable, ["sign"]); |
}).then(function(result) { |
privateKey = result; |
shouldBe("privateKey.toString()", "'[object Key]'"); |