Index: LayoutTests/crypto/aes-cbc-wrap-rsa.html |
diff --git a/LayoutTests/crypto/aes-cbc-wrap-rsa.html b/LayoutTests/crypto/aes-cbc-wrap-rsa.html |
index a4439770208928af9aa692386bebd8eefe0b4514..bf622e4e8595b60b8b46fd7a9b774c3ea1082f0c 100644 |
--- a/LayoutTests/crypto/aes-cbc-wrap-rsa.html |
+++ b/LayoutTests/crypto/aes-cbc-wrap-rsa.html |
@@ -25,12 +25,11 @@ var publicKeyJSON = { |
use: "sig" |
}; |
-var jwkKeyAsArrayBuffer = asciiToUint8Array(JSON.stringify(publicKeyJSON)); |
var wrappingKeyOctets = hexStringToUint8Array("2a00e0e776e94e4dc89bf947cebdebe1"); |
debug("Importing a key to wrap..."); |
-crypto.subtle.importKey("jwk", jwkKeyAsArrayBuffer, { 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) { |
key = result; |
shouldBe("key.algorithm.name", "'RSASSA-PKCS1-v1_5'"); |
debug("Importing a key encryption key..."); |