Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Side by Side Diff: components/cryptauth/proto/securemessage.proto

Issue 2899863002: Updating D2D protocol to v1 to support separate sequence numbers. (Closed)
Patch Set: Addressing comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Definitions related to the SecureMessage format, used by CryptAuth. Do not 5 // Definitions related to the SecureMessage format, used by CryptAuth. Do not
6 // edit unless transcribing from server definitions. 6 // edit unless transcribing from server definitions.
7 syntax = "proto2"; 7 syntax = "proto2";
8 8
9 package securemessage; 9 package securemessage;
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // The payload of the message. 99 // The payload of the message.
100 optional bytes message = 1; 100 optional bytes message = 1;
101 101
102 // The sequence number of the message - must be increasing. 102 // The sequence number of the message - must be increasing.
103 optional int32 sequence_number = 2; 103 optional int32 sequence_number = 2;
104 } 104 }
105 105
106 // Sent as the first message from initiator to responder in an unauthenticated 106 // Sent as the first message from initiator to responder in an unauthenticated
107 // Diffie-Hellman Key Exchange. 107 // Diffie-Hellman Key Exchange.
108 message InitiatorHello { 108 message InitiatorHello {
109 // The session public key to send to the responder.
109 optional GenericPublicKey public_dh_key = 1; 110 optional GenericPublicKey public_dh_key = 1;
111
112 // The protocol version.
113 optional int32 protocol_version = 2 [default = 0];
110 } 114 }
111 115
112 // Sent inside the header of the first message from the responder to the 116 // Sent inside the header of the first message from the responder to the
113 // initiator in an unauthenticated Diffie-Hellman Key Exchange. 117 // initiator in an unauthenticated Diffie-Hellman Key Exchange.
114 message ResponderHello { 118 message ResponderHello {
119 // The session public key to send to the initiator.
115 optional GenericPublicKey public_dh_key = 1; 120 optional GenericPublicKey public_dh_key = 1;
121
122 // The protocol version.
123 optional int32 protocol_version = 2 [default = 0];
116 } 124 }
OLDNEW
« no previous file with comments | « components/cryptauth/device_to_device_secure_context_unittest.cc ('k') | components/cryptauth/session_keys.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698