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

Unified Diff: content/child/webcrypto/crypto_data.h

Issue 797723006: Implement PBKDF2 (except for generateKey) using BoringSSL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pbkdf2
Patch Set: Throw OperationError on importing empty password 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
Index: content/child/webcrypto/crypto_data.h
diff --git a/content/child/webcrypto/crypto_data.h b/content/child/webcrypto/crypto_data.h
index 2433dd7ea1c4e34626eb42528056af0af0540801..a025de44bc0205013e1da0de8258189a7b96da24 100644
--- a/content/child/webcrypto/crypto_data.h
+++ b/content/child/webcrypto/crypto_data.h
@@ -36,6 +36,7 @@ class CONTENT_EXPORT CryptoData {
const unsigned char* bytes() const { return bytes_; }
unsigned int byte_length() const { return byte_length_; }
+ bool is_empty() const { return bytes_ == NULL || byte_length_ == 0; }
private:
const unsigned char* const bytes_;

Powered by Google App Engine
This is Rietveld 408576698