| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |