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

Unified Diff: LayoutTests/crypto/resources/subtle-crypto-concurrent.js

Issue 285823002: [webcrypto] Remove RSA-ES support (1 of 3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix some usages Created 6 years, 7 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/resources/subtle-crypto-concurrent.js
diff --git a/LayoutTests/crypto/resources/subtle-crypto-concurrent.js b/LayoutTests/crypto/resources/subtle-crypto-concurrent.js
index d4c79bbfb4b7b63b4bfffdb81af03d582f454f67..9ed29f8c546a6b1b8f784c399331a7e77166b4e1 100644
--- a/LayoutTests/crypto/resources/subtle-crypto-concurrent.js
+++ b/LayoutTests/crypto/resources/subtle-crypto-concurrent.js
@@ -32,10 +32,10 @@ function notifyFailure(details)
function testGenerateRsaKey()
{
var extractable = false;
- var usages = ['encrypt', 'decrypt'];
+ var usages = ['sign', 'verify'];
// Note that the modulus length is unusually small in order to speed up
// the test (1024 or 2048 would be more typical).
- var algorithm = {name: "RSAES-PKCS1-v1_5", modulusLength: 256, publicExponent: hexStringToUint8Array("010001")};
+ var algorithm = {name: "RSASSA-PKCS1-v1_5", modulusLength: 256, publicExponent: hexStringToUint8Array("010001"), hash: {name: "SHA-256"}};
return crypto.subtle.generateKey(algorithm, extractable, usages).then(function(result) {
publicKey = result.publicKey;
« no previous file with comments | « LayoutTests/crypto/exportKey-unextractable.html ('k') | LayoutTests/crypto/rsa-es-generateKey-parseAlgorithm-failures.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698