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

Unified Diff: components/webcrypto/status.h

Issue 2837383002: Raise an error when calling WebCrypto's deriveBits() for HKDF with (Closed)
Patch Set: checkpoint Created 3 years, 8 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/hkdf.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 5933623e848d2f7bab70bca759e8597cbac74a5a..2c7dfa7b9c5c92b69b8c3ac8288b8507cc4dbb45 100644
--- a/components/webcrypto/status.h
+++ b/components/webcrypto/status.h
@@ -258,6 +258,9 @@ class Status {
// The requested length for HKDF was too large.
static Status ErrorHkdfLengthTooLong();
+ // The length to HKDF's deriveBits() was not a multiple of 8.
+ static Status ErrorHkdfLengthNotWholeByte();
+
// No length parameter was provided for HKDF's Derive Bits operation.
static Status ErrorHkdfDeriveBitsLengthNotSpecified();
« no previous file with comments | « components/webcrypto/algorithms/hkdf.cc ('k') | components/webcrypto/status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698