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

Unified Diff: LayoutTests/crypto/rsa-export-key.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/jwk-import-use-values.html ('k') | LayoutTests/crypto/rsa-export-private-key.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « LayoutTests/crypto/jwk-import-use-values.html ('k') | LayoutTests/crypto/rsa-export-private-key.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698