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

Unified Diff: base/crypto/encryptor.h

Issue 4777001: Implements encryptor_openssl.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux & win Created 10 years, 1 month 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 | « no previous file | base/crypto/encryptor_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/crypto/encryptor.h
diff --git a/base/crypto/encryptor.h b/base/crypto/encryptor.h
index f1d6f28e70e8e278884322c43f7f802827b17fb8..7718240bdc4f3a02438524951515e53e9753891d 100644
--- a/base/crypto/encryptor.h
+++ b/base/crypto/encryptor.h
@@ -44,7 +44,12 @@ class Encryptor {
SymmetricKey* key_;
Mode mode_;
-#if defined(USE_NSS)
+#if defined(USE_OPENSSL)
+ bool Crypt(bool encrypt, // Pass true to encrypt, false to decrypt.
+ const std::string& input,
+ std::string* output);
+ std::string iv_;
+#elif defined(USE_NSS)
ScopedPK11Slot slot_;
ScopedSECItem param_;
#elif defined(OS_MACOSX)
« no previous file with comments | « no previous file | base/crypto/encryptor_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698