1 /* Hey Emacs use -*- mode: C -*- */
3 * Copyright (c) 2016 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 option version = "1.0.0";
19 /** \brief Proof of Transit(POT): Set POT profile
20 @param id - id of the profile
21 @param validator - True/False to indicate if this is verifier
22 @param secret_key - Verification key
23 @param secret_share - Share of the 1st polynomial
24 @param prime - Prime number used for modulo operation
25 @param max_bits - Max bits to be used for Random number generation
26 @param lpc - Lagrange basis polynomial
27 @param polynomial_public - pre-evaluated public polynomial
28 @param list_name_len - length of the name of this profile list
29 @param list_name - name of this profile list
31 autoreply define pot_profile_add {
41 u64 polynomial_public;
43 u8 list_name[list_name_len];
46 /** \brief Proof of Transit(POT): Activate POT profile in the list
47 @param id - id of the profile
48 @param list_name_len - length of the name of this profile list
49 @param list_name - name of this profile list
51 autoreply define pot_profile_activate {
56 u8 list_name[list_name_len];
59 /** \brief Delete POT Profile
60 @param client_index - opaque cookie to identify the sender
61 @param context - sender context, to match reply w/ request
62 @param list_name_len - length of the name of the profile list
63 @param list_name - name of profile list to delete
65 autoreply define pot_profile_del {
69 u8 list_name[list_name_len];
72 /** \brief Show POT Profiles
73 @param client_index - opaque cookie to identify the sender
74 @param context - sender context, to match reply w/ request
75 @param id - id of the profile
77 define pot_profile_show_config_dump {
83 /** \brief Show POT profile reply
84 @param id - id of the profile
85 @param validator - True/False to indicate if this is verifier
86 @param secret_key - Verification key
87 @param secret_share - Share of the 1st polynomial
88 @param prime - Prime number used for modulo operation
89 @param max_bits - Max bits to be used for Random number generation
90 @param lpc - Lagrange basis polynomial
91 @param polynomial_public - pre-evaluated public polynomial
92 @param list_name_len - length of the name of this profile list
93 @param list_name - name of this profile list
95 define pot_profile_show_config_details {
105 u64 polynomial_public;