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

Unified Diff: third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits.html

Issue 2164753002: Reject deriveBits() for PBKDF2 when given a length of 0. (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/pbkdf2/deriveBits.html
diff --git a/third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits.html b/third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits.html
index 4adaee84c48ef5ff302935e9daacaa00e1fc7c83..77bdb1116310498ee0babd265e8e4855f8353e1b 100644
--- a/third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits.html
+++ b/third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits.html
@@ -67,16 +67,6 @@ var kPbkdf2SuccessVectors = [
hash: "SHA-384",
derived_key: "750261780a187897a9978371599db5d1"
},
-
- // Derive zero bytes.
- {
- password: "password",
- salt: "salt",
- c: 4096,
- dkLen: 0,
- hash: "SHA-512",
- derived_key: ""
- },
];
function runPbkdf2SuccessTestCase(testCase)
@@ -113,10 +103,6 @@ function runPbkdf2SuccessTestCase(testCase)
return crypto.subtle.deriveBits(params, key, testCase.dkLen*8);
}).then(function(result) {
bytesShouldMatchHexString("deriveBits", testCase.derived_key, result);
- return crypto.subtle.deriveBits(params, key, 0);
- }).then(function(result) {
- derivedBits = result;
- shouldBe("derivedBits.byteLength", "0");
});
}
« no previous file with comments | « components/webcrypto/status.cc ('k') | third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698