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

Unified Diff: components/webcrypto/status.h

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
« no previous file with comments | « components/webcrypto/algorithms/pbkdf2.cc ('k') | components/webcrypto/status.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webcrypto/status.h
diff --git a/components/webcrypto/status.h b/components/webcrypto/status.h
index 2772e32d5b30e7626090f6690ca4b24344594176..73397d3f92a037541bce9f0cb14deb2df7ab8ffc 100644
--- a/components/webcrypto/status.h
+++ b/components/webcrypto/status.h
@@ -267,6 +267,9 @@ class Status {
// No length parameter was provided for PBKDF2's Derive Bits operation.
static Status ErrorPbkdf2DeriveBitsLengthNotSpecified();
+ // PBKDF2's deriveBits() was called with an unsupported length of 0.
+ static Status ErrorPbkdf2DeriveBitsLengthZero();
+
// PBKDF2 was called with iterations == 0.
static Status ErrorPbkdf2Iterations0();
« no previous file with comments | « components/webcrypto/algorithms/pbkdf2.cc ('k') | components/webcrypto/status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698