Home | History | Annotate | Download | only in util

Lines Matching refs:encrypted

34 // SetPendingKeys should be called with the encrypted contents of that node.
39 // Whenever a update to an encrypted node is received from the server,
59 // Returns whether we can decrypt |encrypted| using the keys we currently know
61 bool CanDecrypt(const sync_pb::EncryptedData& encrypted) const;
63 // Returns whether |encrypted| can be decrypted using the default encryption
65 bool CanDecryptUsingDefaultKey(const sync_pb::EncryptedData& encrypted) const;
67 // Encrypts |message| into |encrypted|. Returns true unless encryption fails.
71 sync_pb::EncryptedData* encrypted) const;
73 // Decrypts |encrypted| into |message|. Returns true unless decryption fails,
75 bool Decrypt(const sync_pb::EncryptedData& encrypted,
78 // Decrypts |encrypted| and returns plaintext decrypted data. If decryption
80 std::string DecryptToString(const sync_pb::EncryptedData& encrypted) const;
82 // Encrypts the set of currently known keys into |encrypted|. Returns true if
84 bool GetKeys(sync_pb::EncryptedData* encrypted) const;
91 // Decrypts |encrypted| and uses its contents to initialize Nigori instances.
92 // Returns true unless decryption of |encrypted| fails. The caller is
93 // responsible for checking that CanDecrypt(encrypted) == true.
94 bool SetKeys(const sync_pb::EncryptedData& encrypted);
96 // Makes a local copy of |encrypted| to later be decrypted by
97 // DecryptPendingKeys. This should only be used if CanDecrypt(encrypted) ==
99 void SetPendingKeys(const sync_pb::EncryptedData& encrypted);