| Index: components/gcm_driver/crypto/proto/gcm_encryption_data.proto
|
| diff --git a/components/gcm_driver/crypto/proto/gcm_encryption_data.proto b/components/gcm_driver/crypto/proto/gcm_encryption_data.proto
|
| index a435c4a69b536188a61f2183229ca61c17931e21..63eecbad6b06958b446638dc284fd7505562c567 100644
|
| --- a/components/gcm_driver/crypto/proto/gcm_encryption_data.proto
|
| +++ b/components/gcm_driver/crypto/proto/gcm_encryption_data.proto
|
| @@ -29,18 +29,24 @@ message KeyPair {
|
| optional bytes public_key = 4;
|
| }
|
|
|
| -// Stores a vector of public/private key-pairs associated with an app id.
|
| +// Stores a vector of public/private key-pairs associated with an app id and
|
| +// optionally the authorized entity of an instance id token.
|
| //
|
| -// In the current implementation, each app id will have a single encryption key-
|
| -// pair associated with it at most. The message allows for multiple key pairs
|
| -// in case we need to force-cycle all keys, allowing the old keys to remain
|
| -// valid for a period of time enabling the web app to update.
|
| +// In the current implementation, each (app_id, authorized_entity) pair will
|
| +// have a single encryption key-pair associated with it at most. The message
|
| +// allows for multiple key pairs in case we need to force-cycle all keys,
|
| +// allowing the old keys to remain valid for a period of time enabling the web
|
| +// app to update.
|
| //
|
| -// Next tag: 4
|
| +// Next tag: 5
|
| message EncryptionData {
|
| // The app id to whom this encryption data belongs.
|
| required string app_id = 1;
|
|
|
| + // The sender id of the instance id token that this encryption data belongs
|
| + // to. Must not be empty. Must be omitted for non-InstanceID registrations.
|
| + optional string authorized_entity = 4;
|
| +
|
| // The actual public/private key-pairs.
|
| repeated KeyPair keys = 2;
|
|
|
|
|