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

Unified Diff: LayoutTests/crypto/exportKey-unextractable.html

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/exportKey-unextractable.html
diff --git a/LayoutTests/crypto/exportKey-unextractable.html b/LayoutTests/crypto/exportKey-unextractable.html
index 903c5f65772475b5b75b43da5c462b260e0220fd..1a1c865383f69e42cf2161c386125888bc2fb866 100644
--- a/LayoutTests/crypto/exportKey-unextractable.html
+++ b/LayoutTests/crypto/exportKey-unextractable.html
@@ -39,9 +39,9 @@ function importUnextractableHmacKey()
function importUnextractableRsaPrivateKey()
{
var keyData = hexStringToUint8Array(kKeyData.rsa1.pkcs8);
- var usages = ['encrypt'];
+ var usages = ['sign'];
var extractable = false;
- var algorithm = {name: 'RSAES-PKCS1-v1_5'};
+ var algorithm = {name: 'RSASSA-PKCS1-v1_5', hash: {name: "sha-1"}};
return crypto.subtle.importKey('pkcs8', keyData, algorithm, extractable, usages);
}
« no previous file with comments | « LayoutTests/crypto/clone-rsaKey-public-expected.txt ('k') | LayoutTests/crypto/resources/subtle-crypto-concurrent.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698