-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth.proto
More file actions
38 lines (31 loc) · 702 Bytes
/
auth.proto
File metadata and controls
38 lines (31 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
syntax = "proto3";
option java_multiple_files = true;
option go_package = "web/hw1/auth";
package auth;
service Auth {
rpc req_pq (Req_pq_input) returns (Req_pq_response) {}
rpc req_DH_params(Req_DH_params_input) returns (Req_DH_params_response) {}
}
message Req_pq_input {
string nonce = 1;
int32 message_id = 2;
}
message Req_pq_response {
string nonce = 1;
string server_nonce = 2;
int32 message_id = 3;
int32 p = 4;
int32 g = 5;
}
message Req_DH_params_input {
string nonce = 1;
string server_nonce = 2;
int32 message_id = 3;
int32 a = 4;
}
message Req_DH_params_response {
string nonce = 1;
string server_nonce = 2;
int32 message_id = 3;
int32 b = 4;
}