HomeSort by relevance Sort by last modified time
    Searched refs:nigori (Results 1 - 25 of 36) sorted by null

1 2

  /external/chromium/chrome/browser/sync/syncable/
nigori_util_unittest.cc 13 sync_pb::NigoriSpecifics nigori; local
15 FillNigoriEncryptedTypes(encrypted_types, &nigori);
16 ModelTypeSet test_types = GetEncryptedDataTypesFromNigori(nigori);
22 FillNigoriEncryptedTypes(encrypted_types, &nigori);
23 test_types = GetEncryptedDataTypesFromNigori(nigori);
24 encrypted_types.erase(syncable::NIGORI); // Should not get set.
30 FillNigoriEncryptedTypes(encrypted_types, &nigori);
31 test_types = GetEncryptedDataTypesFromNigori(nigori);
nigori_util.cc 18 std::string nigori_tag = ModelTypeToRootTag(syncable::NIGORI);
21 VLOG(1) << "Nigori node not found, assuming no encrypted datatypes.";
24 if (NIGORI != entry.GetModelType()) {
25 // Can happen if we fail to apply the nigori node due to a conflict.
26 VLOG(1) << "Nigori node does not have nigori extension. Assuming no"
32 specifics.GetExtension(sync_pb::nigori));
36 const sync_pb::NigoriSpecifics& nigori) {
37 // We don't check NIGORI datatype, it uses its own encryption scheme.
39 if (nigori.encrypt_bookmarks()
    [all...]
nigori_util.h 25 // Sync DB's nigori node. This will never include passwords, as the encryption
29 // Extract the set of encrypted datatypes from a nigori node.
31 const sync_pb::NigoriSpecifics& nigori);
33 // Set the encrypted datatypes on the nigori node.
35 sync_pb::NigoriSpecifics* nigori);
  /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.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...]
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...]
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...]
  /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...]
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_unittest.cc 148 sync_pb::EncryptedData nigori; local
164 EXPECT_TRUE(cryptographer.GetKeys(&nigori));
169 EXPECT_FALSE(cryptographer.CanDecrypt(nigori));
171 cryptographer.SetPendingKeys(nigori);
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/sync/syncable/
nigori_util.cc 159 // It's possible the nigori lost the set of encrypted types. If the current
243 sync_pb::NigoriSpecifics* nigori) {
244 nigori->set_encrypt_everything(encrypt_everything);
246 nigori->set_encrypt_bookmarks(
248 nigori->set_encrypt_preferences(
250 nigori->set_encrypt_autofill_profile(
252 nigori->set_encrypt_autofill(encrypted_types.Has(AUTOFILL));
253 nigori->set_encrypt_themes(encrypted_types.Has(THEMES));
254 nigori->set_encrypt_typed_urls(
256 nigori->set_encrypt_extension_settings
    [all...]
nigori_handler.h 27 // Sync internal interface for dealing with nigori node and querying
35 // Apply a nigori node update, updating the internal encryption state
38 const sync_pb::NigoriSpecifics& nigori,
41 // Store the current encrypt everything/encrypted types state into |nigori|.
43 sync_pb::NigoriSpecifics* nigori,
nigori_util.h 5 // Various utility methods for nigori-based multi-type encryption.
71 // Updates |nigori| to match the encryption state specified by |encrypted_types|
76 sync_pb::NigoriSpecifics* nigori);
78 // Extracts the set of encrypted types from a nigori node.
80 const sync_pb::NigoriSpecifics& nigori);
  /external/chromium_org/sync/test/
fake_sync_encryption_handler.cc 27 const sync_pb::NigoriSpecifics& nigori,
29 if (nigori.encrypt_everything())
31 if (nigori.keybag_is_frozen())
35 if (cryptographer_.CanDecrypt(nigori.encryption_keybag()))
36 cryptographer_.InstallKeys(nigori.encryption_keybag());
37 else if (nigori.has_encryption_keybag())
38 cryptographer_.SetPendingKeys(nigori.encryption_keybag());
56 sync_pb::NigoriSpecifics* nigori,
60 nigori);
fake_sync_encryption_handler.h 20 // state without opening any transactions or interacting with the nigori node.
44 const sync_pb::NigoriSpecifics& nigori,
47 sync_pb::NigoriSpecifics* nigori,
  /external/chromium_org/sync/internal_api/
sync_encryption_handler_impl_unittest.cc 81 CreateRootForType(NIGORI);
150 const sync_pb::NigoriSpecifics& nigori = nigori_node.GetNigoriSpecifics(); local
152 EXPECT_EQ(migration_time, nigori.keystore_migration_time());
154 EXPECT_TRUE(nigori.has_keystore_migration_time());
155 EXPECT_TRUE(nigori.keybag_is_frozen());
158 EXPECT_TRUE(nigori.encrypt_everything());
159 EXPECT_TRUE(nigori.keystore_decryptor_token().blob().empty());
162 nigori.passphrase_type());
164 EXPECT_EQ(nigori.custom_passphrase_time(),
170 nigori.passphrase_type())
210 sync_pb::NigoriSpecifics nigori; local
243 sync_pb::NigoriSpecifics nigori = BuildMigratedNigori( local
276 sync_pb::NigoriSpecifics nigori = BuildMigratedNigori( local
313 sync_pb::NigoriSpecifics nigori; local
346 sync_pb::NigoriSpecifics nigori; local
416 sync_pb::NigoriSpecifics nigori; local
452 sync_pb::NigoriSpecifics nigori; local
491 sync_pb::NigoriSpecifics nigori; local
591 const sync_pb::NigoriSpecifics& nigori = nigori_node.GetNigoriSpecifics(); local
738 sync_pb::NigoriSpecifics nigori; local
795 sync_pb::NigoriSpecifics nigori; local
1039 sync_pb::NigoriSpecifics nigori; local
1119 sync_pb::NigoriSpecifics nigori; local
1199 sync_pb::NigoriSpecifics nigori; local
1261 sync_pb::NigoriSpecifics nigori; local
1306 sync_pb::NigoriSpecifics nigori; local
1340 sync_pb::NigoriSpecifics nigori; local
1383 sync_pb::NigoriSpecifics nigori; local
1432 sync_pb::NigoriSpecifics nigori; local
1513 sync_pb::NigoriSpecifics nigori; local
1615 sync_pb::NigoriSpecifics nigori; local
1722 sync_pb::NigoriSpecifics nigori; local
1817 sync_pb::NigoriSpecifics nigori; local
1935 sync_pb::NigoriSpecifics nigori; local
2191 sync_pb::NigoriSpecifics nigori = BuildMigratedNigori( local
    [all...]
sync_encryption_handler_impl.cc 39 // The maximum number of times we will automatically overwrite the nigori node
41 // We protect ourselves against nigori rollbacks, but it's possible two
42 // different clients might have contrasting view of what the nigori node state
46 // Enumeration of nigori keystore migration results (for use in UMA stats).
67 // The new passphrase state is sufficient to determine whether a nigori node
74 bool IsNigoriMigratedToKeystore(const sync_pb::NigoriSpecifics& nigori) {
75 if (!nigori.has_passphrase_type())
77 if (!nigori.has_keystore_migration_time())
79 if (!nigori.keybag_is_frozen())
81 if (nigori.passphrase_type() =
725 const sync_pb::NigoriSpecifics& nigori = local
    [all...]
sync_encryption_handler_impl.h 35 // and creating/receiving nigori node updates.
70 const sync_pb::NigoriSpecifics& nigori,
73 sync_pb::NigoriSpecifics* nigori,
144 // Apply a nigori update. Updates internal and cryptographer state.
145 // Returns true on success, false if |nigori| was incompatible, and the
146 // nigori node must be corrected.
148 bool ApplyNigoriUpdateImpl(const sync_pb::NigoriSpecifics& nigori,
155 // Write the current encryption state into the nigori node. This includes
160 // Updates local encrypted types from |nigori|.
162 // a subset of that in |nigori|. Returns false if the local state alread
    [all...]
  /external/chromium_org/sync/engine/
apply_control_data_updates_unittest.cc 62 // Verify that applying a nigori node sets initial sync ended properly,
78 // Nigori node updates should update the Cryptographer.
84 sync_pb::NigoriSpecifics* nigori = specifics.mutable_nigori(); local
85 other_cryptographer.GetKeys(nigori->mutable_encryption_keybag());
86 nigori->set_encrypt_everything(true);
88 ModelTypeToRootTag(NIGORI), specifics, true);
102 // Create some local unsynced and unencrypted data. Apply a nigori update that
104 // data as part of the nigori update. Apply another nigori update with no
151 sync_pb::NigoriSpecifics* nigori = specifics.mutable_nigori() local
268 sync_pb::NigoriSpecifics* nigori = specifics.mutable_nigori(); local
    [all...]
apply_control_data_updates.cc 51 if (type == NIGORI) {
52 // Nigori node applications never fail.
83 // Update the nigori handler with the server's nigori node.
85 // If we have a locally modified nigori node, we merge them manually. This
92 // local passphrase, while the nigori node will preserve the server encryption
99 // We apply the nigori update regardless of whether there's a conflict or
104 const sync_pb::NigoriSpecifics& nigori = local
105 entry->GetServerSpecifics().nigori();
106 trans->directory()->GetNigoriHandler()->ApplyNigoriUpdate(nigori, trans)
    [all...]
  /external/chromium/chrome/browser/sync/engine/
apply_updates_command_unittest.cc 49 (*mutable_routing_info())[syncable::NIGORI] = GROUP_PASSIVE;
332 // Nigori node updates should update the Cryptographer.
338 sync_pb::NigoriSpecifics* nigori = local
339 specifics.MutableExtension(sync_pb::nigori);
340 other_cryptographer.GetKeys(nigori->mutable_encrypted());
341 nigori->set_encrypt_bookmarks(true);
343 CreateUnappliedNewItem(syncable::ModelTypeToRootTag(syncable::NIGORI),
354 << "The nigori update shouldn't be in conflict";
356 << "The nigori update should be applied";
406 sync_pb::NigoriSpecifics* nigori local
503 sync_pb::NigoriSpecifics* nigori = local
    [all...]
syncer_util.cc 290 // We intercept updates to the Nigori node, update the Cryptographer and
291 // encrypt any unsynced changes here because there is no Nigori
294 if (specifics.HasExtension(sync_pb::nigori)) {
295 const sync_pb::NigoriSpecifics& nigori = local
296 specifics.GetExtension(sync_pb::nigori);
297 if (!nigori.encrypted().blob().empty()) {
298 if (cryptographer->CanDecrypt(nigori.encrypted())) {
299 cryptographer->SetKeys(nigori.encrypted());
301 cryptographer->SetPendingKeys(nigori.encrypted());
307 syncable::GetEncryptedDataTypesFromNigori(nigori);
    [all...]
syncapi.cc 381 DCHECK_EQ(syncable::NIGORI, GetModelType());
384 return unencrypted.GetExtension(sync_pb::nigori);
438 DCHECK_NE(type, syncable::NIGORI); // Nigori is encrypted separately.
546 DCHECK_EQ(syncable::NIGORI, GetModelType());
553 entity_specifics.MutableExtension(sync_pb::nigori)->CopyFrom(new_value);
740 DCHECK_EQ(syncable::NIGORI, model_type);
2032 sync_pb::NigoriSpecifics nigori; local
2490 const sync_pb::NigoriSpecifics& nigori = node.GetNigoriSpecifics(); local
    [all...]
  /external/chromium/chrome/browser/sync/protocol/
proto_value_conversions_unittest.cc 146 SET_EXTENSION(nigori);

Completed in 205 milliseconds

1 2