commit | eebe46ae25a65b3b577e9a644a535af7956a341f | [log] [tgz] |
---|---|---|
author | Seth Moore <sethmo@google.com> | Thu Jan 19 17:07:58 2023 -0800 |
committer | Seth Moore <sethmo@google.com> | Mon Jan 23 15:57:40 2023 -0800 |
tree | 5f52e794d5f4a00fb535a8bfcc21292c15a06bf5 | |
parent | 6762b62048f76d3bf5243b16a253d4ede8efa923 [diff] |
ProvisionedKey only cares about millisecond accuracy Since the key objects are serialized to/from a database, millisecond accuracy is all we get from the timestamps. Update the comparison and hash operators to truncate timestamps to the millisecond to avoid letting units like nanoseconds mess with object comparisons. Test: RkpdAppUnitTests Change-Id: I6bfb9d109beafc076fa5580eb6f2506ff389a446