mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
[Presence] Extend shared credential proto with int64 secret id field
PiperOrigin-RevId: 550661806
This commit is contained in:
committed by
Copybara-Service
parent
15d24c08a5
commit
37b9119615
@@ -43,7 +43,7 @@ enum CredentialType {
|
||||
// The shared credential is derived from local credential, and distributed to
|
||||
// remote devices based on the trust token for identity decryption and
|
||||
// authentication.
|
||||
// NEXT_ID=14
|
||||
// NEXT_ID=15
|
||||
// LINT.IfChange(SharedCredential)
|
||||
message SharedCredential {
|
||||
// The randomly generated unique id of the public credential.
|
||||
@@ -94,5 +94,8 @@ message SharedCredential {
|
||||
|
||||
// The tag for verifying metadata_encryption_key for a signed V1 adv.
|
||||
bytes metadata_encryption_key_signed_adv_tag = 13;
|
||||
|
||||
// The randomly generated positive unique id of the shared credential.
|
||||
int64 id = 14;
|
||||
}
|
||||
// LINT.ThenChange(//depot/google3/google/internal/location/nearby/presence/v1/nearby_resources.proto:SharedCredential)
|
||||
|
||||
@@ -28,6 +28,7 @@ option optimize_for = LITE_RUNTIME;
|
||||
// The local credential contains information of a local device for
|
||||
// identity encryption and authentication. It should never leave the generating
|
||||
// device.
|
||||
// NEXT_ID=11
|
||||
message LocalCredential {
|
||||
// Private encryption key descriptor.
|
||||
// Usually, either `certificate_alias` or `key` is set.
|
||||
@@ -71,4 +72,8 @@ message LocalCredential {
|
||||
|
||||
// The 16 bytes aes key to encrypt metadata in PublicCredential.
|
||||
bytes metadata_encryption_key_v1 = 10;
|
||||
|
||||
// The positive unique id of (and hashed based on) a pair of Secret Key and
|
||||
// X509Certificate's public key.
|
||||
int64 id = 11;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user