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

Unified Diff: third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits-failures-expected.txt

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-failures-expected.txt
diff --git a/third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits-failures-expected.txt b/third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits-failures-expected.txt
index ac0a31b1bc8ed46e598bdd49d111c73100f36e78..a4318e4ed0d2e641821ca2bb0ff2717f8ccc8b9f 100644
--- a/third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits-failures-expected.txt
+++ b/third_party/WebKit/LayoutTests/crypto/subtle/pbkdf2/deriveBits-failures-expected.txt
@@ -15,6 +15,12 @@ SUCCESS (rejected): OperationError: PBKDF2 requires iterations > 0
Deriving using iterations=-10...
SUCCESS (rejected): TypeError: Pbkdf2Params: iterations: Outside of numeric range
+
+Deriving using length 0...
+SUCCESS (rejected): OperationError: A length of 0 was specified for PBKDF2's Derive Bits operation.
+
+Deriving using length -10...
+SUCCESS (rejected): OperationError: Length for PBKDF2 key derivation must be a multiple of 8 bits.
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698