summaryrefslogtreecommitdiff
path: root/crypto_rot47.h
diff options
context:
space:
mode:
authorDarin Petkov <petkov@chromium.org>2011-06-29 13:49:28 -0700
committerDarin Petkov <petkov@chromium.org>2011-06-29 16:00:43 -0700
commit86964e0bae1a38c6817243959026603b4b8c69b7 (patch)
tree815a2f67646030392aa808aa6fbfd6f1e0c168a9 /crypto_rot47.h
parent823c47e9ce362e6ba66ab21b1aa889a1848e3c4c (diff)
downloadshill-86964e0bae1a38c6817243959026603b4b8c69b7.tar.gz
shill: Infrastucture for encrypting/decrypting/scrambling store values.
This adds a CryptoProvider that registers and provides access to different prioritized crypto modules (currently DES-CBC and ROT47). Use the provider in KeyFileStore to provide an API for getting and setting crypted string values. BUG=chromium-os:16963 TEST=unit tests Change-Id: I492516890eb3f527758d354cd8890088cb99dea4 Reviewed-on: http://gerrit.chromium.org/gerrit/3395 Tested-by: Darin Petkov <petkov@chromium.org> Reviewed-by: Chris Masone <cmasone@chromium.org>
Diffstat (limited to 'crypto_rot47.h')
-rw-r--r--crypto_rot47.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto_rot47.h b/crypto_rot47.h
index 06cf6b93..c99242ff 100644
--- a/crypto_rot47.h
+++ b/crypto_rot47.h
@@ -5,6 +5,8 @@
#ifndef SHILL_CRYPTO_ROT47_
#define SHILL_CRYPTO_ROT47_
+#include <base/basictypes.h>
+
#include "shill/crypto_interface.h"
namespace shill {
@@ -14,10 +16,15 @@ class CryptoROT47 : public CryptoInterface {
public:
static const char kID[];
+ CryptoROT47();
+
// Inherited from CryptoInterface.
virtual std::string GetID();
virtual bool Encrypt(const std::string &plaintext, std::string *ciphertext);
virtual bool Decrypt(const std::string &ciphertext, std::string *plaintext);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CryptoROT47);
};
} // namespace shill