Lines Matching refs:Cryptographer
73 using browser_sync::Cryptographer;
202 const sync_pb::EntitySpecifics& specifics, Cryptographer* crypto) {
561 Cryptographer* cryptographer = GetTransaction()->GetCryptographer();
570 DecryptPasswordSpecifics(GetEntry()->Get(SPECIFICS), cryptographer));
573 cryptographer->CanDecryptUsingDefaultKey(old_ciphertext)) {
578 if (!cryptographer->Encrypt(data, new_value.mutable_encrypted())) {
1314 Cryptographer* cryptographer,
1436 Cryptographer* cryptographer) {
1451 a_str = cryptographer->DecryptToString(encrypted);
1457 b_str = cryptographer->DecryptToString(encrypted);
1487 // Initializes (bootstraps) the Cryptographer if NIGORI has finished
1493 // decryption. Otherwise, the cryptographer is made ready (is_ready()).
1776 // Cryptographer should only be accessed while holding a transaction.
1778 Cryptographer* cryptographer = trans.GetCryptographer();
1779 cryptographer->Bootstrap(restored_key_for_bootstrapping);
1789 if (cryptographer->CanDecrypt(nigori.encrypted())) {
1790 cryptographer->SetKeys(nigori.encrypted());
1792 cryptographer->SetPendingKeys(nigori.encrypted());
1947 // All accesses to the cryptographer are protected by a transaction.
1949 Cryptographer* cryptographer = trans.GetCryptographer();
1952 if (cryptographer->has_pending_keys()) {
1953 if (!cryptographer->DecryptPendingKeys(params)) {
1983 cryptographer->AddKey(params);
1987 // download conditions are met vs Cryptographer init. It seems like it's
1991 cryptographer->GetKeys(specifics.mutable_encrypted());
1998 cryptographer->GetBootstrapToken(&bootstrap_token);
2379 Cryptographer* cryptographer, const syncable::EntryKernel& original,
2388 DecryptPasswordSpecifics(original_specifics, cryptographer));
2398 if (!cryptographer->Decrypt(encrypted, &original_specifics)) {
2418 Cryptographer* crypto = dir_manager()->GetCryptographer(trans);
2497 Cryptographer* cryptographer = trans.GetCryptographer();
2498 if (!cryptographer->is_ready() && !cryptographer->has_pending_keys()) {
2500 DCHECK(!cryptographer->CanDecrypt(nigori.encrypted()));
2501 cryptographer->SetPendingKeys(nigori.encrypted());
2505 // If we've completed a sync cycle and the cryptographer isn't ready
2507 if (cryptographer->has_pending_keys()) {
2510 } else if (!cryptographer->is_ready()) {