Home | History | Annotate | Download | only in util

Lines Matching defs:Cryptographer

5 #include "sync/util/cryptographer.h"
25 Cryptographer::Cryptographer(Encryptor* encryptor)
30 Cryptographer::~Cryptographer() {}
33 void Cryptographer::Bootstrap(const std::string& restored_bootstrap_token) {
46 bool Cryptographer::CanDecrypt(const sync_pb::EncryptedData& data) const {
50 bool Cryptographer::CanDecryptUsingDefaultKey(
56 bool Cryptographer::Encrypt(
61 LOG(ERROR) << "Cryptographer not ready, failed to encrypt.";
74 bool Cryptographer::EncryptString(
101 bool Cryptographer::Decrypt(const sync_pb::EncryptedData& encrypted,
108 std::string Cryptographer::DecryptToString(
124 bool Cryptographer::GetKeys(sync_pb::EncryptedData* encrypted) const {
144 bool Cryptographer::AddKey(const KeyParams& params) {
156 bool Cryptographer::AddNonDefaultKey(const KeyParams& params) {
169 bool Cryptographer::AddKeyFromBootstrapToken(
177 bool Cryptographer::AddKeyImpl(scoped_ptr<Nigori> initialized_nigori,
202 void Cryptographer::InstallKeys(const sync_pb::EncryptedData& encrypted) {
211 void Cryptographer::SetDefaultKey(const std::string& key_name) {
216 void Cryptographer::SetPendingKeys(const sync_pb::EncryptedData& encrypted) {
222 const sync_pb::EncryptedData& Cryptographer::GetPendingKeys() const {
227 bool Cryptographer::DecryptPendingKeys(const KeyParams& params) {
252 bool Cryptographer::GetBootstrapToken(std::string* token) const {
269 std::string Cryptographer::UnpackBootstrapToken(
288 void Cryptographer::InstallKeyBag(const sync_pb::NigoriKeyBag& bag) {
306 bool Cryptographer::KeybagIsStale(
327 std::string Cryptographer::GetDefaultNigoriKey() const {
341 bool Cryptographer::ImportNigoriKey(const std::string serialized_nigori_key) {