/external/chromium_org/sync/syncable/ |
D | nigori_util.cc | 244 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 …]
|
D | nigori_handler.h | 38 const sync_pb::NigoriSpecifics& nigori, 43 sync_pb::NigoriSpecifics* nigori,
|
D | nigori_util.h | 76 sync_pb::NigoriSpecifics* nigori); 80 const sync_pb::NigoriSpecifics& nigori);
|
/external/chromium_org/sync/util/ |
D | nigori_unittest.cc | 17 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 …]
|
D | cryptographer.cc | 132 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 …]
|
D | cryptographer_unittest.cc | 148 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()
|
D | cryptographer.h | 197 bool AddKeyImpl(scoped_ptr<Nigori> nigori, bool set_as_default);
|
/external/chromium_org/sync/internal_api/ |
D | sync_encryption_handler_impl_unittest.cc | 150 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 …]
|
D | sync_encryption_handler_impl.cc | 74 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 …]
|
D | sync_encryption_handler_impl.h | 70 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,
|
D | sync_manager_impl_unittest.cc | 909 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 …]
|
D | base_node.cc | 241 return GetEntitySpecifics().nigori(); in GetNigoriSpecifics()
|
/external/chromium_org/sync/test/ |
D | fake_sync_encryption_handler.cc | 27 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()
|
D | fake_sync_encryption_handler.h | 44 const sync_pb::NigoriSpecifics& nigori, 47 sync_pb::NigoriSpecifics* nigori,
|
/external/chromium_org/sync/engine/ |
D | apply_control_data_updates_unittest.cc | 84 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 …]
|
D | apply_control_data_updates.cc | 102 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()
|
D | syncer_unittest.cc | 709 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/ |
D | nigori_specifics.proto | 5 // Sync protocol datatype extension for nigori keys. 30 // Properties of nigori sync object.
|
D | device_info_specifics.proto | 5 // Sync protocol datatype extension for nigori keys.
|
D | proto_value_conversions_unittest.cc | 294 SET_FIELD(nigori); in TEST_F()
|
D | proto_value_conversions.cc | 795 SET_FIELD(nigori, NigoriSpecificsToValue); in EntitySpecificsToValue()
|
/external/chromium_org/sync/ |
D | sync_core.gypi | 213 'util/nigori.cc', 214 'util/nigori.h',
|
/external/chromium_org/chrome/browser/sync/glue/ |
D | sync_backend_host_impl.cc | 770 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/ |
D | fake_server.cc | 297 response_entity->specifics().nigori().passphrase_type() == in HandleGetUpdatesRequest()
|
/external/chromium_org/sync/tools/testserver/ |
D | chromiumsync.py | 1064 if (nigori_original.specifics.nigori.sync_tab_favicons): 1067 nigori_new.specifics.nigori.sync_tabs = True
|