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

Unified Diff: LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-small-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
Index: LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-small-key.html
diff --git a/LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-small-key.html b/LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-small-key.html
index c4705a43de62f4fdb9e49950231685a08eda70aa..25e23af490f094d60b9eb6b53bc772aadf8345d1 100644
--- a/LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-small-key.html
+++ b/LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-small-key.html
@@ -39,11 +39,11 @@ var privateKeyJSON = {
};
Promise.resolve(null).then(function(result) {
- return crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(publicKeyJSON)), {name: 'RSASSA-PKCS1-v1_5', hash: {name: 'sha-256'}}, extractable, ["verify"]);
+ return crypto.subtle.importKey("jwk", publicKeyJSON, {name: 'RSASSA-PKCS1-v1_5', hash: {name: 'sha-256'}}, extractable, ["verify"]);
}).then(function(result) {
key = result;
shouldEvaluateAs("key.algorithm.modulusLength", 1024);
- return crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(privateKeyJSON)), {name: 'RSASSA-PKCS1-v1_5', hash: {name: 'sha-512'}}, extractable, ["sign"]);
+ return crypto.subtle.importKey("jwk", privateKeyJSON, {name: 'RSASSA-PKCS1-v1_5', hash: {name: 'sha-512'}}, extractable, ["sign"]);
}).then(function(result) {
key = result;
shouldEvaluateAs("key.algorithm.modulusLength", 1024);
« no previous file with comments | « LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk.html ('k') | LayoutTests/crypto/rsassa-pkcs1-v1_5-sign-verify.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698