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

Unified Diff: LayoutTests/crypto/rsa-indexeddb.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-export-private-key.html ('k') | LayoutTests/crypto/rsa-oaep-key-manipulation.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/rsa-indexeddb.html
diff --git a/LayoutTests/crypto/rsa-indexeddb.html b/LayoutTests/crypto/rsa-indexeddb.html
index a85ba7f200a2d96a53eca466536ccfb297e65bb8..222ae4e28a608af719df69bb14d82ee85be7c7c3 100644
--- a/LayoutTests/crypto/rsa-indexeddb.html
+++ b/LayoutTests/crypto/rsa-indexeddb.html
@@ -24,7 +24,7 @@ var privateKeyJSON = {
qi: "YCX_pLwbMBA1ThVH0WcwmnytqNcrMCEwTm7ByA2eU6nWbQrULvf7m9_kzfLUcjsnpAVlBQG5JMXMy0Sq4ptwbywsa5-G8KAOOOR2L3v4hC-Eys9ftgFM_3i0o40eeQH4b3haPbntrIeMg8IzlOuVYKf9-2QuKDoWeRdd7NsdxTk"
};
-crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(privateKeyJSON)), {name: "RSASSA-PKCS1-v1_5", hash: {name: "sha-256"}}, true, ["sign"]).then(function(key) {
+crypto.subtle.importKey("jwk", privateKeyJSON, {name: "RSASSA-PKCS1-v1_5", hash: {name: "sha-256"}}, true, ["sign"]).then(function(key) {
var openRequest = indexedDB.open("crypto_subtle");
openRequest.onupgradeneeded = function(event) {
var objectStore = event.target.result.createObjectStore("rsa-indexeddb");
« no previous file with comments | « LayoutTests/crypto/rsa-export-private-key.html ('k') | LayoutTests/crypto/rsa-oaep-key-manipulation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698