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

Side by Side 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 unified diff | Download patch
OLDNEW
1 Tests deriveBits() with various bad parameters for PBKDF2 1 Tests deriveBits() with various bad parameters for PBKDF2
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 6
7 Importing the password... 7 Importing the password...
8 SUCCESS 8 SUCCESS
9 9
10 Deriving 100 bits... 10 Deriving 100 bits...
11 SUCCESS (rejected): OperationError: Length for PBKDF2 key derivation must be a m ultiple of 8 bits. 11 SUCCESS (rejected): OperationError: Length for PBKDF2 key derivation must be a m ultiple of 8 bits.
12 12
13 Deriving using iterations=0... 13 Deriving using iterations=0...
14 SUCCESS (rejected): OperationError: PBKDF2 requires iterations > 0 14 SUCCESS (rejected): OperationError: PBKDF2 requires iterations > 0
15 15
16 Deriving using iterations=-10... 16 Deriving using iterations=-10...
17 SUCCESS (rejected): TypeError: Pbkdf2Params: iterations: Outside of numeric rang e 17 SUCCESS (rejected): TypeError: Pbkdf2Params: iterations: Outside of numeric rang e
18
19 Deriving using length 0...
20 SUCCESS (rejected): OperationError: A length of 0 was specified for PBKDF2's Der ive Bits operation.
21
22 Deriving using length -10...
23 SUCCESS (rejected): OperationError: Length for PBKDF2 key derivation must be a m ultiple of 8 bits.
18 PASS successfullyParsed is true 24 PASS successfullyParsed is true
19 25
20 TEST COMPLETE 26 TEST COMPLETE
21 27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698