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

Unified Diff: third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits-rfc6070-test-vectors.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-rfc6070-test-vectors.html
diff --git a/third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits-rfc6070-test-vectors.html b/third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits-rfc6070-test-vectors.html
index 14da3c67241983a3a8df0349c5740e7280b68791..d87a2bb33072b05c231e99928f965ccf80506930 100644
--- a/third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits-rfc6070-test-vectors.html
+++ b/third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits-rfc6070-test-vectors.html
@@ -102,10 +102,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");
});
}

Powered by Google App Engine
This is Rietveld 408576698