• Josh Nohle's avatar
    [DeviceSync v2] Add RemoteDeviceV2Loader class · 03c7a27a
    Josh Nohle authored
    This class is an analog of RemoveDeviceLoader. It converts the
    CryptAuthDevice objects from the CryptAuthDeviceRegistry into
    RemoteDevice objects. Some RemoteDevice fields are left empty if the
    CryptAuthDevice does not have CryptAuthBetterTogetherDeviceMetadata, for
    instance, if the metadata cannot be decrypted. If the public key is
    available for a device, a persistent symmetric key (PSK) is derived and
    added to the RemoteDevice; otherwise, the PSK is set to an empty string.
    
    An instance of this class can only be used once.
    
    The async calls to SecureMessage are guarded by the default DBus
    timeout (currently 25s).
    
    Bug: 951969
    Change-Id: I9295b48448c03e5a7df03248949195c60964e0f3
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1904330Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
    Commit-Queue: Josh Nohle <nohle@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#714040}
    03c7a27a
beacon_seed.cc 4.02 KB