Home
last modified time | relevance | path

Searched refs:nigori (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium_org/sync/syncable/
Dnigori_util.cc244 sync_pb::NigoriSpecifics* nigori) { in UpdateNigoriFromEncryptedTypes() argument
245 nigori->set_encrypt_everything(encrypt_everything); in UpdateNigoriFromEncryptedTypes()
247 nigori->set_encrypt_bookmarks( in UpdateNigoriFromEncryptedTypes()
249 nigori->set_encrypt_preferences( in UpdateNigoriFromEncryptedTypes()
251 nigori->set_encrypt_autofill_profile( in UpdateNigoriFromEncryptedTypes()
253 nigori->set_encrypt_autofill(encrypted_types.Has(AUTOFILL)); in UpdateNigoriFromEncryptedTypes()
254 nigori->set_encrypt_themes(encrypted_types.Has(THEMES)); in UpdateNigoriFromEncryptedTypes()
255 nigori->set_encrypt_typed_urls( in UpdateNigoriFromEncryptedTypes()
257 nigori->set_encrypt_extension_settings( in UpdateNigoriFromEncryptedTypes()
259 nigori->set_encrypt_extensions( in UpdateNigoriFromEncryptedTypes()
[all …]
Dnigori_handler.h38 const sync_pb::NigoriSpecifics& nigori,
43 sync_pb::NigoriSpecifics* nigori,
Dnigori_util.h76 sync_pb::NigoriSpecifics* nigori);
80 const sync_pb::NigoriSpecifics& nigori);
/external/chromium_org/sync/util/
Dnigori_unittest.cc17 Nigori nigori; in TEST() local
18 EXPECT_TRUE(nigori.InitByDerivation("example.com", "username", "password")); in TEST()
21 EXPECT_TRUE(nigori.Permute(Nigori::Password, "test name", in TEST()
52 Nigori nigori; in TEST() local
53 EXPECT_TRUE(nigori.InitByDerivation("example.com", "username", "password")); in TEST()
58 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted1)); in TEST()
61 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted2)); in TEST()
67 Nigori nigori; in TEST() local
68 EXPECT_TRUE(nigori.InitByDerivation("example.com", "username", "password")); in TEST()
75 EXPECT_TRUE(nigori.Decrypt(encrypted, &plaintext)); in TEST()
[all …]
Dcryptographer.cc132 const Nigori& nigori = *it->second; in GetKeys() local
135 nigori.ExportKeys(key->mutable_user_key(), in GetKeys()
146 scoped_ptr<Nigori> nigori(new Nigori); in AddKey() local
147 if (!nigori->InitByDerivation(params.hostname, in AddKey()
153 return AddKeyImpl(nigori.Pass(), true); in AddKey()
159 scoped_ptr<Nigori> nigori(new Nigori); in AddNonDefaultKey() local
160 if (!nigori->InitByDerivation(params.hostname, in AddNonDefaultKey()
166 return AddKeyImpl(nigori.Pass(), false); in AddNonDefaultKey()
228 Nigori nigori; in DecryptPendingKeys() local
229 if (!nigori.InitByDerivation(params.hostname, in DecryptPendingKeys()
[all …]
Dcryptographer_unittest.cc148 sync_pb::EncryptedData nigori; in TEST_F() local
164 EXPECT_TRUE(cryptographer.GetKeys(&nigori)); in TEST_F()
169 EXPECT_FALSE(cryptographer.CanDecrypt(nigori)); in TEST_F()
171 cryptographer.SetPendingKeys(nigori); in TEST_F()
Dcryptographer.h197 bool AddKeyImpl(scoped_ptr<Nigori> nigori, bool set_as_default);
/external/chromium_org/sync/internal_api/
Dsync_encryption_handler_impl_unittest.cc150 const sync_pb::NigoriSpecifics& nigori = nigori_node.GetNigoriSpecifics(); in VerifyMigratedNigoriWithTimestamp() local
152 EXPECT_EQ(migration_time, nigori.keystore_migration_time()); in VerifyMigratedNigoriWithTimestamp()
154 EXPECT_TRUE(nigori.has_keystore_migration_time()); in VerifyMigratedNigoriWithTimestamp()
155 EXPECT_TRUE(nigori.keybag_is_frozen()); in VerifyMigratedNigoriWithTimestamp()
158 EXPECT_TRUE(nigori.encrypt_everything()); in VerifyMigratedNigoriWithTimestamp()
159 EXPECT_TRUE(nigori.keystore_decryptor_token().blob().empty()); in VerifyMigratedNigoriWithTimestamp()
162 nigori.passphrase_type()); in VerifyMigratedNigoriWithTimestamp()
164 EXPECT_EQ(nigori.custom_passphrase_time(), in VerifyMigratedNigoriWithTimestamp()
170 nigori.passphrase_type()); in VerifyMigratedNigoriWithTimestamp()
173 EXPECT_FALSE(nigori.encrypt_everything()); in VerifyMigratedNigoriWithTimestamp()
[all …]
Dsync_encryption_handler_impl.cc74 bool IsNigoriMigratedToKeystore(const sync_pb::NigoriSpecifics& nigori) { in IsNigoriMigratedToKeystore() argument
75 if (!nigori.has_passphrase_type()) in IsNigoriMigratedToKeystore()
77 if (!nigori.has_keystore_migration_time()) in IsNigoriMigratedToKeystore()
79 if (!nigori.keybag_is_frozen()) in IsNigoriMigratedToKeystore()
81 if (nigori.passphrase_type() == in IsNigoriMigratedToKeystore()
84 if (nigori.passphrase_type() == in IsNigoriMigratedToKeystore()
86 nigori.keystore_decryptor_token().blob().empty()) in IsNigoriMigratedToKeystore()
88 if (!nigori.has_keystore_migration_time()) in IsNigoriMigratedToKeystore()
647 const sync_pb::NigoriSpecifics& nigori, in ApplyNigoriUpdate() argument
651 if (!ApplyNigoriUpdateImpl(nigori, trans)) { in ApplyNigoriUpdate()
[all …]
Dsync_encryption_handler_impl.h70 const sync_pb::NigoriSpecifics& nigori,
73 sync_pb::NigoriSpecifics* nigori,
148 bool ApplyNigoriUpdateImpl(const sync_pb::NigoriSpecifics& nigori,
167 const sync_pb::NigoriSpecifics& nigori,
225 bool ShouldTriggerMigration(const sync_pb::NigoriSpecifics& nigori,
Dsync_manager_impl_unittest.cc909 sync_pb::NigoriSpecifics nigori; in SetUpEncryption() local
910 cryptographer->GetKeys(nigori.mutable_encryption_keybag()); in SetUpEncryption()
912 &nigori, in SetUpEncryption()
916 node.SetNigoriSpecifics(nigori); in SetUpEncryption()
1061 sync_pb::NigoriSpecifics nigori = node.GetNigoriSpecifics(); in TEST_F() local
1062 EXPECT_TRUE(nigori.has_encryption_keybag()); in TEST_F()
1065 EXPECT_TRUE(cryptographer->CanDecrypt(nigori.encryption_keybag())); in TEST_F()
1106 sync_pb::NigoriSpecifics nigori = node.GetNigoriSpecifics(); in TEST_F() local
1107 EXPECT_TRUE(nigori.has_encryption_keybag()); in TEST_F()
1110 EXPECT_TRUE(cryptographer->CanDecrypt(nigori.encryption_keybag())); in TEST_F()
[all …]
Dbase_node.cc241 return GetEntitySpecifics().nigori(); in GetNigoriSpecifics()
/external/chromium_org/sync/test/
Dfake_sync_encryption_handler.cc27 const sync_pb::NigoriSpecifics& nigori, in ApplyNigoriUpdate() argument
29 if (nigori.encrypt_everything()) in ApplyNigoriUpdate()
31 if (nigori.keybag_is_frozen()) in ApplyNigoriUpdate()
35 if (cryptographer_.CanDecrypt(nigori.encryption_keybag())) in ApplyNigoriUpdate()
36 cryptographer_.InstallKeys(nigori.encryption_keybag()); in ApplyNigoriUpdate()
37 else if (nigori.has_encryption_keybag()) in ApplyNigoriUpdate()
38 cryptographer_.SetPendingKeys(nigori.encryption_keybag()); in ApplyNigoriUpdate()
56 sync_pb::NigoriSpecifics* nigori, in UpdateNigoriFromEncryptedTypes() argument
60 nigori); in UpdateNigoriFromEncryptedTypes()
Dfake_sync_encryption_handler.h44 const sync_pb::NigoriSpecifics& nigori,
47 sync_pb::NigoriSpecifics* nigori,
/external/chromium_org/sync/engine/
Dapply_control_data_updates_unittest.cc84 sync_pb::NigoriSpecifics* nigori = specifics.mutable_nigori(); in TEST_F() local
85 other_cryptographer.GetKeys(nigori->mutable_encryption_keybag()); in TEST_F()
86 nigori->set_encrypt_everything(true); in TEST_F()
151 sync_pb::NigoriSpecifics* nigori = specifics.mutable_nigori(); in TEST_F() local
152 cryptographer->GetKeys(nigori->mutable_encryption_keybag()); in TEST_F()
153 nigori->set_encrypt_everything(true); in TEST_F()
267 sync_pb::NigoriSpecifics* nigori = specifics.mutable_nigori(); in TEST_F() local
268 other_cryptographer.GetKeys(nigori->mutable_encryption_keybag()); in TEST_F()
269 nigori->set_encrypt_everything(true); in TEST_F()
371 nigori().encryption_keybag())); in TEST_F()
[all …]
Dapply_control_data_updates.cc102 const sync_pb::NigoriSpecifics& nigori = in ApplyNigoriUpdate() local
103 entry->GetServerSpecifics().nigori(); in ApplyNigoriUpdate()
104 trans->directory()->GetNigoriHandler()->ApplyNigoriUpdate(nigori, trans); in ApplyNigoriUpdate()
130 const sync_pb::NigoriSpecifics& server_nigori = server_specifics.nigori(); in ApplyNigoriUpdate()
133 const sync_pb::NigoriSpecifics& local_nigori = local_specifics.nigori(); in ApplyNigoriUpdate()
Dsyncer_unittest.cc709 sync_pb::NigoriSpecifics* nigori = specifics.mutable_nigori(); in TEST_F() local
710 other_cryptographer.GetKeys(nigori->mutable_encryption_keybag()); in TEST_F()
716 GetCryptographer(&wtrans)->SetPendingKeys(nigori->encryption_keybag()); in TEST_F()
822 sync_pb::NigoriSpecifics* nigori = specifics.mutable_nigori(); in TEST_F() local
823 other_cryptographer.GetKeys(nigori->mutable_encryption_keybag()); in TEST_F()
825 GetCryptographer(&wtrans)->SetPendingKeys(nigori->encryption_keybag()); in TEST_F()
/external/chromium_org/sync/protocol/
Dnigori_specifics.proto5 // Sync protocol datatype extension for nigori keys.
30 // Properties of nigori sync object.
Ddevice_info_specifics.proto5 // Sync protocol datatype extension for nigori keys.
Dproto_value_conversions_unittest.cc294 SET_FIELD(nigori); in TEST_F()
Dproto_value_conversions.cc795 SET_FIELD(nigori, NigoriSpecificsToValue); in EntitySpecificsToValue()
/external/chromium_org/sync/
Dsync_core.gypi213 'util/nigori.cc',
214 'util/nigori.h',
/external/chromium_org/chrome/browser/sync/glue/
Dsync_backend_host_impl.cc770 syncer::Nigori nigori; in CheckPassphraseAgainstCachedPendingKeys() local
771 nigori.InitByDerivation("localhost", "dummy", passphrase); in CheckPassphraseAgainstCachedPendingKeys()
773 bool result = nigori.Decrypt(cached_pending_keys_.blob(), &plaintext); in CheckPassphraseAgainstCachedPendingKeys()
/external/chromium_org/sync/test/fake_server/
Dfake_server.cc297 response_entity->specifics().nigori().passphrase_type() == in HandleGetUpdatesRequest()
/external/chromium_org/sync/tools/testserver/
Dchromiumsync.py1064 if (nigori_original.specifics.nigori.sync_tab_favicons):
1067 nigori_new.specifics.nigori.sync_tabs = True

12