Lines Matching refs:cryptographer
561 Cryptographer* cryptographer = GetTransaction()->GetCryptographer(); in SetPasswordSpecifics() local
570 DecryptPasswordSpecifics(GetEntry()->Get(SPECIFICS), cryptographer)); in SetPasswordSpecifics()
573 cryptographer->CanDecryptUsingDefaultKey(old_ciphertext)) { in SetPasswordSpecifics()
578 if (!cryptographer->Encrypt(data, new_value.mutable_encrypted())) { in SetPasswordSpecifics()
1314 Cryptographer* cryptographer,
1436 Cryptographer* cryptographer) { in VisiblePropertiesDiffer() argument
1451 a_str = cryptographer->DecryptToString(encrypted); in VisiblePropertiesDiffer()
1457 b_str = cryptographer->DecryptToString(encrypted); in VisiblePropertiesDiffer()
1778 Cryptographer* cryptographer = trans.GetCryptographer(); in BootstrapEncryption() local
1779 cryptographer->Bootstrap(restored_key_for_bootstrapping); in BootstrapEncryption()
1789 if (cryptographer->CanDecrypt(nigori.encrypted())) { in BootstrapEncryption()
1790 cryptographer->SetKeys(nigori.encrypted()); in BootstrapEncryption()
1792 cryptographer->SetPendingKeys(nigori.encrypted()); in BootstrapEncryption()
1949 Cryptographer* cryptographer = trans.GetCryptographer(); in SetPassphrase() local
1952 if (cryptographer->has_pending_keys()) { in SetPassphrase()
1953 if (!cryptographer->DecryptPendingKeys(params)) { in SetPassphrase()
1983 cryptographer->AddKey(params); in SetPassphrase()
1991 cryptographer->GetKeys(specifics.mutable_encrypted()); in SetPassphrase()
1998 cryptographer->GetBootstrapToken(&bootstrap_token); in SetPassphrase()
2379 Cryptographer* cryptographer, const syncable::EntryKernel& original, in SetExtraChangeRecordData() argument
2388 DecryptPasswordSpecifics(original_specifics, cryptographer)); in SetExtraChangeRecordData()
2398 if (!cryptographer->Decrypt(encrypted, &original_specifics)) { in SetExtraChangeRecordData()
2497 Cryptographer* cryptographer = trans.GetCryptographer(); in OnSyncEngineEvent() local
2498 if (!cryptographer->is_ready() && !cryptographer->has_pending_keys()) { in OnSyncEngineEvent()
2500 DCHECK(!cryptographer->CanDecrypt(nigori.encrypted())); in OnSyncEngineEvent()
2501 cryptographer->SetPendingKeys(nigori.encrypted()); in OnSyncEngineEvent()
2507 if (cryptographer->has_pending_keys()) { in OnSyncEngineEvent()
2510 } else if (!cryptographer->is_ready()) { in OnSyncEngineEvent()