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

Unified Diff: content/child/webcrypto/status.cc

Issue 803173010: Implement HKDF for webcrypto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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: content/child/webcrypto/status.cc
diff --git a/content/child/webcrypto/status.cc b/content/child/webcrypto/status.cc
index d7732a5182787f725eceeb2ffced0e7caac10a3f..ce8fe0ea11bbdd49b936f4f00d6fc60b69d7fc0d 100644
--- a/content/child/webcrypto/status.cc
+++ b/content/child/webcrypto/status.cc
@@ -323,6 +323,11 @@ Status Status::ErrorEcdhLengthTooBig(unsigned int max_length_bits) {
max_length_bits));
}
+Status Status::ErrorHkdfLengthTooLong() {
+ return Status(blink::WebCryptoErrorTypeOperation,
+ "The length provided for HKDF is too large.");
+}
+
Status::Status(blink::WebCryptoErrorType error_type,
const std::string& error_details_utf8)
: type_(TYPE_ERROR),

Powered by Google App Engine
This is Rietveld 408576698