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

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

Issue 797723006: Implement PBKDF2 (except for generateKey) using BoringSSL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pbkdf2
Patch Set: Created 5 years, 11 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 | « content/child/webcrypto/status.h ('k') | content/content_child.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/status.cc
diff --git a/content/child/webcrypto/status.cc b/content/child/webcrypto/status.cc
index ff69b31212b3351ba6258c96c578c2f34df252d3..6bd385ddb9c638a94522546498001e8badf63590 100644
--- a/content/child/webcrypto/status.cc
+++ b/content/child/webcrypto/status.cc
@@ -341,6 +341,23 @@ Status Status::ErrorHkdfDeriveBitsLengthNotSpecified() {
"No length was specified for the HKDF Derive Bits operation.");
}
+Status Status::ErrorPbkdf2InvalidLength() {
+ return Status(
+ blink::WebCryptoErrorTypeOperation,
+ "Length for PBKDF2 key derivation must be a multiple of 8 bits.");
+}
+
+Status Status::ErrorPbkdf2DeriveBitsLengthNotSpecified() {
+ return Status(
+ blink::WebCryptoErrorTypeOperation,
+ "No length was specified for the PBKDF2 Derive Bits operation.");
+}
+
+Status Status::ErrorPbkdf2EmptyPassword() {
+ return Status(blink::WebCryptoErrorTypeOperation,
+ "The password for PBKDF2 must not be empty.");
+}
+
Status::Status(blink::WebCryptoErrorType error_type,
const std::string& error_details_utf8)
: type_(TYPE_ERROR),
« no previous file with comments | « content/child/webcrypto/status.h ('k') | content/content_child.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698