Description[Sync] Add intelligent re-encryption support.
Add an EncryptIfDifferent method that only encrypts something if the underlying
unencrypted data is either different or encrypted with an old key. Modify sync
encryption code to use this method instead of their own difference checks.
Because of this change, we also now always ensure the nigori has the full set of
encryption keys during any SetPassphrase call
BUG=107297
TEST=sync_unit_tests, cryptographer's unit_tests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114269
Patch Set 1 #Patch Set 2 : Self review #
Total comments: 20
Patch Set 3 : Comments #Patch Set 4 : Rebase #
Total comments: 12
Patch Set 5 : Address comments #
Total comments: 4
Patch Set 6 : Final comments + full rebase #Patch Set 7 : Fix merge conflict #Patch Set 8 : Rebase again #
Messages
Total messages: 12 (0 generated)
|