/external/chromium/chrome/browser/sync/util/ |
cryptographer.cc | 6 #include "chrome/browser/sync/util/cryptographer.h" 19 Cryptographer::Cryptographer() : default_nigori_(NULL) { 22 Cryptographer::~Cryptographer() {} 24 void Cryptographer::Bootstrap(const std::string& restored_bootstrap_token) { 35 bool Cryptographer::CanDecrypt(const sync_pb::EncryptedData& data) const { 39 bool Cryptographer::CanDecryptUsingDefaultKey( 44 bool Cryptographer::Encrypt(const ::google::protobuf::MessageLite& message, 64 bool Cryptographer::Decrypt(const sync_pb::EncryptedData& encrypted [all...] |
cryptographer.h | 40 // CanDecrypt should be used to verify whether the Cryptographer can decrypt 43 class Cryptographer { 45 Cryptographer(); 46 ~Cryptographer(); 49 // Cryptographer instance into the ready state (is_ready will be true). 106 // Returns whether this Cryptographer is ready to encrypt and decrypt data. 113 // Cryptographer instance to bootstrap itself. Returns false if such a token 139 DISALLOW_COPY_AND_ASSIGN(Cryptographer);
|
cryptographer_unittest.cc | 5 #include "chrome/browser/sync/util/cryptographer.h" 18 Cryptographer cryptographer; local 19 EXPECT_FALSE(cryptographer.is_ready()); 25 EXPECT_FALSE(cryptographer.CanDecrypt(encrypted)); 29 Cryptographer cryptographer; local 32 cryptographer.AddKey(params); 33 EXPECT_TRUE(cryptographer.is_ready()); 39 EXPECT_FALSE(cryptographer.CanDecrypt(encrypted)) 43 Cryptographer cryptographer; local 64 Cryptographer cryptographer; local 110 Cryptographer cryptographer; local 121 Cryptographer cryptographer; local 156 Cryptographer cryptographer; local [all...] |
/external/chromium/chrome/browser/sync/engine/ |
update_applicator.h | 30 class Cryptographer; 38 Cryptographer* cryptographer, 69 Cryptographer* cryptographer_;
|
build_and_process_conflict_sets_command.h | 26 class Cryptographer; 46 Cryptographer* cryptographer, sessions::StatusController* status, 52 Cryptographer* cryptographer,
|
apply_updates_command_unittest.cc | 218 Cryptographer* cryptographer; local 220 // Storing the cryptographer separately is bad, but for this test we 225 cryptographer = 230 cryptographer->AddKey(params); 236 cryptographer->Encrypt(data, 280 Cryptographer* cryptographer = local 284 cryptographer->AddKey(params); 286 cryptographer->Encrypt(data 293 Cryptographer cryptographer; local 321 Cryptographer* cryptographer; local 365 Cryptographer* cryptographer; local 459 Cryptographer* cryptographer; local [all...] |
syncer_util.h | 24 class Cryptographer; 60 Cryptographer* cryptographer);
|
update_applicator.cc | 20 Cryptographer* cryptographer, 26 cryptographer_(cryptographer),
|
build_and_process_conflict_sets_command.cc | 62 Cryptographer* cryptographer, StatusController* status, 85 cryptographer, routes, status)) { 151 Cryptographer* cryptographer, 198 UpdateApplicator applicator(resolver, cryptographer,
|
syncapi.h | 54 #include "chrome/browser/sync/util/cryptographer.h" 529 browser_sync::Cryptographer* GetCryptographer() const { 546 browser_sync::Cryptographer* cryptographer_; [all...] |
syncapi.cc | 73 using browser_sync::Cryptographer; 202 const sync_pb::EntitySpecifics& specifics, Cryptographer* crypto) { 561 Cryptographer* cryptographer = GetTransaction()->GetCryptographer(); local 570 DecryptPasswordSpecifics(GetEntry()->Get(SPECIFICS), cryptographer)); local 573 cryptographer->CanDecryptUsingDefaultKey(old_ciphertext)) { 578 if (!cryptographer->Encrypt(data, new_value.mutable_encrypted())) { 1778 Cryptographer* cryptographer = trans.GetCryptographer(); local 1949 Cryptographer* cryptographer = trans.GetCryptographer(); local 2497 Cryptographer* cryptographer = trans.GetCryptographer(); local [all...] |
syncapi_unittest.cc | 38 #include "chrome/browser/sync/util/cryptographer.h" 45 using browser_sync::Cryptographer; 721 // Set the nigori cryptographer information. 723 Cryptographer* cryptographer = trans.GetCryptographer(); local 724 if (!cryptographer) 727 cryptographer->AddKey(params); 729 cryptographer->GetKeys(nigori.mutable_encrypted()); 733 return cryptographer->is_ready(); [all...] |
syncer_util.cc | 248 Cryptographer* cryptographer) { 290 // We intercept updates to the Nigori node, update the Cryptographer and 298 if (cryptographer->CanDecrypt(nigori.encrypted())) { 299 cryptographer->SetKeys(nigori.encrypted()); 301 cryptographer->SetPendingKeys(nigori.encrypted()); 309 (!cryptographer->is_ready() || 311 cryptographer))) { 315 // because the cryptographer already has the pending keys set, so once 334 // Cryptographer decrypt them [all...] |
/external/chromium/chrome/browser/sync/syncable/ |
nigori_util.h | 15 class Cryptographer; 52 browser_sync::Cryptographer* cryptographer);
|
directory_manager.h | 24 #include "chrome/browser/sync/util/cryptographer.h" 76 // Wrappers for cryptographer() that enforce holding a transaction. 77 // Note: the Cryptographer is NOT thread safe. It must only be accessed while 78 // the transaction is still active. The Cryptographer's pointer should not be 80 browser_sync::Cryptographer* GetCryptographer( 81 const sync_api::BaseTransaction* trans) const { return cryptographer(); } 82 browser_sync::Cryptographer* GetCryptographer( 83 const syncable::BaseTransaction* trans) const { return cryptographer(); } 86 browser_sync::Cryptographer* cryptographer() const function in class:syncable::DirectoryManager [all...] |
directory_manager.cc | 18 using browser_sync::Cryptographer; 44 cryptographer_(new Cryptographer) {
|
nigori_util.cc | 13 #include "chrome/browser/sync/util/cryptographer.h" 77 browser_sync::Cryptographer* cryptographer) { 94 if (!cryptographer->Encrypt( 109 if (!cryptographer->Decrypt(entry_specifics.encrypted(),
|