Index: LayoutTests/crypto/rsa-export-key.html |
diff --git a/LayoutTests/crypto/rsa-export-key.html b/LayoutTests/crypto/rsa-export-key.html |
index a4dd526a5df82be83506f4b3bacd864ca046eac3..cfd4ba6838a027d02ff92c1fe582cef6e31da88e 100644 |
--- a/LayoutTests/crypto/rsa-export-key.html |
+++ b/LayoutTests/crypto/rsa-export-key.html |
@@ -23,10 +23,8 @@ var publicKeyJSON = { |
e: "AQAB" |
}; |
-var jwkKeyAsArrayBuffer = asciiToUint8Array(JSON.stringify(publicKeyJSON)); |
- |
debug("\nImporting a JWK key..."); |
-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; |
return crypto.subtle.exportKey(null, key); |