HomeSort by relevance Sort by last modified time
    Searched refs:Nigori (Results 1 - 12 of 12) sorted by null

  /external/chromium/chrome/browser/sync/util/
nigori_unittest.cc 5 #include "chrome/browser/sync/util/nigori.h"
17 Nigori nigori; local
18 EXPECT_TRUE(nigori.InitByDerivation("example.com", "username", "password"));
21 EXPECT_TRUE(nigori.Permute(Nigori::Password, "test name",
31 Nigori nigori1;
35 EXPECT_TRUE(nigori1.Permute(Nigori::Password,
39 Nigori nigori2;
43 EXPECT_TRUE(nigori2.Permute(Nigori::Password
52 Nigori nigori; local
67 Nigori nigori; local
82 Nigori nigori; local
97 Nigori nigori; local
115 Nigori nigori; local
    [all...]
cryptographer.h 16 #include "chrome/browser/sync/util/nigori.h"
22 // The parameters used to initialize a Nigori instance.
29 // This class manages the Nigori objects used to encrypt and decrypt sensitive
30 // sync data (eg. passwords). Each Nigori object knows how to handle data
33 // Whenever an update to the Nigori sync node is received from the server,
35 // Most likely, an updated Nigori node means that a new passphrase has been set
86 // Creates a new Nigori instance using |params|. If successful, |params| will
91 // Decrypts |encrypted| and uses its contents to initialize Nigori instances.
119 typedef std::map<std::string, linked_ptr<const Nigori> > NigoriMap;
121 // Helper method to instantiate Nigori instances for each set of ke
    [all...]
cryptographer.cc 13 // We name a particular Nigori instance (ie. a triplet consisting of a hostname,
17 const char kNigoriKeyName[] = "nigori-key";
30 scoped_ptr<Nigori> nigori(UnpackBootstrapToken(restored_bootstrap_token));
31 if (nigori.get())
32 AddKeyImpl(nigori.release());
91 // Create a bag of all the Nigori parameters we know about.
95 const Nigori& nigori = *it->second; local
98 nigori.ExportKeys(key->mutable_user_key()
150 Nigori nigori; local
    [all...]
nigori.cc 5 #include "chrome/browser/sync/util/nigori.h"
32 // NigoriStream simplifies the concatenation operation of the Nigori protocol.
47 NigoriStream& operator<<(const Nigori::Type type) {
64 const char Nigori::kSaltSalt[] = "saltsalt";
66 Nigori::Nigori() {
69 Nigori::~Nigori() {
72 bool Nigori::InitByDerivation(const std::string& hostname,
109 bool Nigori::InitByImport(const std::string& user_key
    [all...]
nigori.h 16 // A (partial) implementation of Nigori, a protocol to securely store secrets in
25 class Nigori {
31 Nigori();
32 virtual ~Nigori();
cryptographer_unittest.cc 101 sync_pb::EncryptedData nigori; local
117 EXPECT_TRUE(cryptographer.GetKeys(&nigori));
122 EXPECT_FALSE(cryptographer.CanDecrypt(nigori));
124 cryptographer.SetPendingKeys(nigori);
150 Nigori nigori; local
151 ASSERT_TRUE(nigori.InitByDerivation("example.com", "username", "password"));
153 ASSERT_TRUE(nigori.ExportKeys(&expected_user, &expected_encryption,
158 EXPECT_TRUE(cryptographer.PackBootstrapToken(&nigori, &token));
161 scoped_ptr<Nigori> unpacked(cryptographer.UnpackBootstrapToken(token))
    [all...]
  /external/chromium_org/sync/util/
nigori_unittest.cc 5 #include "sync/util/nigori.h"
17 Nigori nigori; local
18 EXPECT_TRUE(nigori.InitByDerivation("example.com", "username", "password"));
21 EXPECT_TRUE(nigori.Permute(Nigori::Password, "test name",
31 Nigori nigori1;
35 EXPECT_TRUE(nigori1.Permute(Nigori::Password,
39 Nigori nigori2;
43 EXPECT_TRUE(nigori2.Permute(Nigori::Password
52 Nigori nigori; local
67 Nigori nigori; local
82 Nigori nigori; local
97 Nigori nigori; local
115 Nigori nigori; local
    [all...]
nigori.cc 5 #include "sync/util/nigori.h"
27 // NigoriStream simplifies the concatenation operation of the Nigori protocol.
42 NigoriStream& operator<<(const Nigori::Type type) {
59 const char Nigori::kSaltSalt[] = "saltsalt";
61 Nigori::Nigori() {
64 Nigori::~Nigori() {
67 bool Nigori::InitByDerivation(const std::string& hostname,
104 bool Nigori::InitByImport(const std::string& user_key
    [all...]
nigori.h 19 // A (partial) implementation of Nigori, a protocol to securely store secrets in
28 class SYNC_EXPORT Nigori {
34 Nigori();
35 virtual ~Nigori();
cryptographer.cc 19 // We name a particular Nigori instance (ie. a triplet consisting of a hostname,
23 const char kNigoriKeyName[] = "nigori-key";
128 // Create a bag of all the Nigori parameters we know about.
132 const Nigori& nigori = *it->second; local
135 nigori.ExportKeys(key->mutable_user_key(),
140 // Encrypt the bag with the default Nigori.
145 // Create the new Nigori and make it the default encryptor.
146 scoped_ptr<Nigori> nigori(new Nigori)
228 Nigori nigori; local
    [all...]
cryptographer.h 16 #include "sync/util/nigori.h"
29 // The parameters used to initialize a Nigori instance.
36 // This class manages the Nigori objects used to encrypt and decrypt sensitive
37 // sync data (eg. passwords). Each Nigori object knows how to handle data
40 // Whenever an update to the Nigori sync node is received from the server,
42 // Most likely, an updated Nigori node means that a new passphrase has been set
106 // Creates a new Nigori instance using |params|. If successful, |params| will
113 // Same as AddKey(..), but builds the new Nigori from a previously persisted
121 // Creates a new Nigori instance using |params|. If successful, |params|
122 // will be added to the nigori keybag, but will not be the default encryptio
    [all...]
  /external/chromium_org/chrome/browser/sync/glue/
sync_backend_host_impl.cc 162 NOTREACHED() << "SetEncryptionPassphrase must never be called when nigori"
188 NOTREACHED() << "SetDecryptionPassphrase must never be called when nigori"
220 // syncer thread, since we could receive a new nigori node while the task is
337 types_to_download.Put(syncer::NIGORI);
351 // data types being downloaded here but the nigori type, which is always
354 // the nigori type is the only requested type which requires migration, and
355 // that the requested types list includes at least one non-nigori type. It
357 // careful to not send progress markers for non-nigori types, though. If a
358 // non-nigori type in the request requires migration, a MIGRATION_DONE
669 syncer::Nigori nigori local
    [all...]

Completed in 196 milliseconds