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

Unified Diff: third_party/WebKit/LayoutTests/crypto/subtle/rsa-oaep/key-manipulation.html

Issue 2165713002: Change the error message in WebCrypto when using a key that has BOTH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: third_party/WebKit/LayoutTests/crypto/subtle/rsa-oaep/key-manipulation.html
diff --git a/third_party/WebKit/LayoutTests/crypto/subtle/rsa-oaep/key-manipulation.html b/third_party/WebKit/LayoutTests/crypto/subtle/rsa-oaep/key-manipulation.html
index 09cba7d1fdc198921490d08b22c7744c487bc7ed..de9863ffcd60bb9acd5d90b1894cbcf3a565fa04 100644
--- a/third_party/WebKit/LayoutTests/crypto/subtle/rsa-oaep/key-manipulation.html
+++ b/third_party/WebKit/LayoutTests/crypto/subtle/rsa-oaep/key-manipulation.html
@@ -39,12 +39,14 @@ crypto.subtle.generateKey(algorithmKeyGen, extractable, ["encrypt", "decrypt", "
shouldBe("bytesToHexString(keyPair.privateKey.algorithm.publicExponent)", "'010001'");
shouldBe("keyPair.privateKey.algorithm.hash.name", "'SHA-1'");
- debug("\nTesting that the keys can't be used with different algorithms...");
+ debug("\nUsing the RSA-OAEP private key for AES-CBC encryption...");
iv = hexStringToUint8Array("000102030405060708090a0b0c0d0e0f");
return crypto.subtle.encrypt({name: "aes-cbc", iv: iv}, keyPair.privateKey, hexStringToUint8Array("00"));
}, failAndFinishJSTest).then(failAndFinishJSTest, function(result) {
logError(result);
+
+ debug("\nUsing the RSA-OAEP public key for AES-CBC encryption...");
return crypto.subtle.encrypt({name: "aes-cbc", iv: iv}, keyPair.publicKey, hexStringToUint8Array("00"));
}, failAndFinishJSTest).then(failAndFinishJSTest, function(result) {
logError(result);

Powered by Google App Engine
This is Rietveld 408576698