[Sync:USS] Fix GetData() for backward compatible keystore Nigori
Old implementation of GetData() encrypted keystore_decryptor_token with current default encryption key, which is wrong for backward compatible keystore Nigori, since it uses non-keystore key as the default encryption key. Now we always use most recent keystore key to encrypt keystore_decryptor_token. The old behavior shouldn't cause any issues, since it should be impossible to reach GetData() in commit codepath, while Nigori is in backward compatible keystore mode. But it's still better to fix, to avoid data corruption in case it overlaps with other bugs and to not violate invariants. Bug: 922900 Change-Id: Ic2455b5e1875cb18c4a9278598999dc47025bc23 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1834081Reviewed-by:Mikel Astiz <mastiz@chromium.org> Commit-Queue: Maksim Moskvitin <mmoskvitin@google.com> Cr-Commit-Position: refs/heads/master@{#702033}
Showing
Please register or sign in to comment