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

Unified Diff: LayoutTests/crypto/resources/worker-infinite-loop-generateKey.js

Issue 344503003: [webcrypto] Remove a lingering usage of RSA-ES. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/resources/worker-infinite-loop-generateKey.js
diff --git a/LayoutTests/crypto/resources/worker-infinite-loop-generateKey.js b/LayoutTests/crypto/resources/worker-infinite-loop-generateKey.js
index 6d07d2adb18cf60e0f965f485abd9254902a5956..971e19213efefa998907d4a91c736e484f381f47 100644
--- a/LayoutTests/crypto/resources/worker-infinite-loop-generateKey.js
+++ b/LayoutTests/crypto/resources/worker-infinite-loop-generateKey.js
@@ -3,9 +3,9 @@ importScripts('common.js');
function continuouslyGenerateRsaKey()
{
var extractable = false;
- var usages = ['encrypt', 'decrypt'];
+ var usages = ['sign', 'verify'];
// Note that the modulus length is small.
- var algorithm = {name: "RSAES-PKCS1-v1_5", modulusLength: 512, publicExponent: hexStringToUint8Array("010001")};
+ var algorithm = {name: "RSASSA-PKCS1-v1_5", modulusLength: 512, publicExponent: hexStringToUint8Array("010001"), hash: {name: 'sha-1'}};
return crypto.subtle.generateKey(algorithm, extractable, usages).then(function(result) {
// Infinite recursion intentional!
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698