diff options
author | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 22:47:54 +0000 |
---|---|---|
committer | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 22:47:54 +0000 |
commit | ce3b22e8da4fa9ca838423bacd54e45c3030d518 (patch) | |
tree | d90c40608007ff07851b5bb1b4c2b73013fdf5b5 | |
parent | 3faa467f5a4da77c16713ee39f4c7098a8210a7c (diff) | |
download | chromium_src-ce3b22e8da4fa9ca838423bacd54e45c3030d518.zip chromium_src-ce3b22e8da4fa9ca838423bacd54e45c3030d518.tar.gz chromium_src-ce3b22e8da4fa9ca838423bacd54e45c3030d518.tar.bz2 |
Cleanup: Remove now obsolete Nigori params.
BUG=none
TEST=NigoriTest.*
Review URL: http://codereview.chromium.org/3088002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55296 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/sync/util/nigori.cc | 4 | ||||
-rw-r--r-- | chrome/browser/sync/util/nigori.h | 11 | ||||
-rw-r--r-- | chrome/browser/sync/util/nigori_unittest.cc | 8 |
3 files changed, 0 insertions, 23 deletions
diff --git a/chrome/browser/sync/util/nigori.cc b/chrome/browser/sync/util/nigori.cc index 33d3915..77cca2b 100644 --- a/chrome/browser/sync/util/nigori.cc +++ b/chrome/browser/sync/util/nigori.cc @@ -70,10 +70,6 @@ Nigori::~Nigori() { bool Nigori::InitByDerivation(const std::string& hostname, const std::string& username, const std::string& password) { - hostname_ = hostname; - username_ = username; - password_ = password; - NigoriStream salt_password; salt_password << username << hostname; diff --git a/chrome/browser/sync/util/nigori.h b/chrome/browser/sync/util/nigori.h index 3a4cb04..38d6fde 100644 --- a/chrome/browser/sync/util/nigori.h +++ b/chrome/browser/sync/util/nigori.h @@ -61,13 +61,6 @@ class Nigori { std::string* encryption_key, std::string* mac_key) const; - // The next three getters return the parameters used to initialize the keys. - // Given the hostname, username and password, another Nigori object capable of - // encrypting and decrypting the same data as this one could be initialized. - const std::string& hostname() const { return hostname_; } - const std::string& username() const { return username_; } - const std::string& password() const { return password_; } - static const char kSaltSalt[]; // The salt used to derive the user salt. static const size_t kSaltKeySizeInBits = 128; static const size_t kDerivedKeySizeInBits = 128; @@ -80,10 +73,6 @@ class Nigori { static const size_t kSigningIterations = 1004; private: - std::string hostname_; - std::string username_; - std::string password_; - scoped_ptr<base::SymmetricKey> user_key_; scoped_ptr<base::SymmetricKey> encryption_key_; scoped_ptr<base::SymmetricKey> mac_key_; diff --git a/chrome/browser/sync/util/nigori_unittest.cc b/chrome/browser/sync/util/nigori_unittest.cc index 5626957..bed045b 100644 --- a/chrome/browser/sync/util/nigori_unittest.cc +++ b/chrome/browser/sync/util/nigori_unittest.cc @@ -13,14 +13,6 @@ namespace browser_sync { namespace { -TEST(NigoriTest, Parameters) { - Nigori nigori; - EXPECT_TRUE(nigori.InitByDerivation("example.com", "username", "password")); - EXPECT_STREQ("example.com", nigori.hostname().c_str()); - EXPECT_STREQ("username", nigori.username().c_str()); - EXPECT_STREQ("password", nigori.password().c_str()); -} - TEST(NigoriTest, Permute) { Nigori nigori; EXPECT_TRUE(nigori.InitByDerivation("example.com", "username", "password")); |