1// Copyright 2020 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// https://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto2"; 16 17package securegcm; 18 19import "securegcm.proto"; 20 21option optimize_for = LITE_RUNTIME; 22option java_package = "com.google.security.cryptauth.lib.securegcm"; 23option java_outer_classname = "SecureGcmProximityAuthProto"; 24option objc_class_prefix = "SGCM"; 25 26// Message used when one device wants to initiate a Proximity Auth pairing with 27// another device DEPRECATED. DO NOT USE 28message CloudToDeviceProximityAuthPairing { 29 // The name or description of the device that wants to pair with another 30 // personal device of the user. This is a string that may be shown to the 31 // user or may be kept in logs. 32 optional string initiating_device_name = 1; 33 34 // The original device's Bluetooth address in human readable form 35 // (e.g., <code>AA:BB:CC:DD:EE:FF</code>) 36 optional string initiating_device_bt_address = 2; 37 38 // A symmetric key that was generated by the original device. 39 optional bytes ephemeral_symmetric_key = 3; 40 41 // Optional additional metadata that the initiating device can choose to send. 42 // Used for quick protocol iteration. 43 optional bytes additional_metadata = 4; 44} 45 46// Message to push to eligible unlock devices so that they can contact the 47// device to be unlocked. Used by FindEligibleUnlockDevicesRequest, with 48// PayloadType = DEVICE_PROXIMITY_CALLBACK. 49message DeviceProximityCallback { 50 // Required. The bluetooth MAC address that should be contacted by the unlock 51 // device. 52 optional string callback_bluetooth_address = 1; 53 54 // Required. The type of the device that triggered this callback to be sent. 55 optional DeviceType source_device_type = 2; 56 57 // The version of the setup protocol that the source device expects to use. 58 optional int32 protocol_version = 3; 59} 60