Home | History | Annotate | Download | only in util

Lines Matching full:encrypted

41 // SetPendingKeys should be called with the encrypted contents of that node.
46 // Whenever a update to an encrypted node is received from the server,
67 // Returns whether we can decrypt |encrypted| using the keys we currently know
69 bool CanDecrypt(const sync_pb::EncryptedData& encrypted) const;
71 // Returns whether |encrypted| can be decrypted using the default encryption
73 bool CanDecryptUsingDefaultKey(const sync_pb::EncryptedData& encrypted) const;
75 // Encrypts |message| into |encrypted|. Does not overwrite |encrypted| if
76 // |message| already matches the decrypted data within |encrypted| and
77 // |encrypted| was encrypted with the current default key. This avoids
78 // unnecessarily modifying |encrypted| if the change had no practical effect.
82 sync_pb::EncryptedData* encrypted) const;
84 // Encrypted |serialized| into |encrypted|. Does not overwrite |encrypted| if
85 // |message| already matches the decrypted data within |encrypted| and
86 // |encrypted| was encrypted with the current default key. This avoids
87 // unnecessarily modifying |encrypted| if the change had no practical effect.
91 sync_pb::EncryptedData* encrypted) const;
93 // Decrypts |encrypted| into |message|. Returns true unless decryption fails,
95 bool Decrypt(const sync_pb::EncryptedData& encrypted,
98 // Decrypts |encrypted| and returns plaintext decrypted data. If decryption
100 std::string DecryptToString(const sync_pb::EncryptedData& encrypted) const;
102 // Encrypts the set of currently known keys into |encrypted|. Returns true if
104 bool GetKeys(sync_pb::EncryptedData* encrypted) const;
129 // Decrypts |encrypted| and uses its contents to initialize Nigori instances.
130 // Returns true unless decryption of |encrypted| fails. The caller is
131 // responsible for checking that CanDecrypt(encrypted) == true.
133 void InstallKeys(const sync_pb::EncryptedData& encrypted);
135 // Makes a local copy of |encrypted| to later be decrypted by
136 // DecryptPendingKeys. This should only be used if CanDecrypt(encrypted) ==
138 void SetPendingKeys(const sync_pb::EncryptedData& encrypted);