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.
18 /** \brief Proof of Transit(POT): Set POT profile
19 @param id - id of the profile
20 @param validator - True/False to indicate if this is verifier
21 @param secret_key - Verification key
22 @param secret_share - Share of the 1st polynomial
23 @param prime - Prime number used for modulo operation
24 @param max_bits - Max bits to be used for Random number generation
25 @param lpc - Lagrange basis polynomial
26 @param polynomial_public - pre-evaluated public polynomial
27 @param list_name_len - length of the name of this profile list
28 @param list_name - name of this profile list
30 define pot_profile_add {
40 u64 polynomial_public;
45 /** \brief Proof of Transit profile add / del response
46 @param context - sender context, to match reply w/ request
47 @param retval - return value for request
49 define pot_profile_add_reply {
55 /** \brief Proof of Transit(POT): Activate POT profile in the list
56 @param id - id of the profile
57 @param list_name_len - length of the name of this profile list
58 @param list_name - name of this profile list
60 define pot_profile_activate {
68 /** \brief Proof of Transit profile activate response
69 @param context - sender context, to match reply w/ request
70 @param retval - return value for request
72 define pot_profile_activate_reply {
77 /** \brief Delete POT Profile
78 @param client_index - opaque cookie to identify the sender
79 @param context - sender context, to match reply w/ request
80 @param list_name_len - length of the name of the profile list
81 @param list_name - name of profile list to delete
83 define pot_profile_del {
90 /** \brief Proof of Transit profile add / del response
91 @param context - sender context, to match reply w/ request
92 @param retval - return value for request
94 define pot_profile_del_reply {
99 /** \brief Show POT Profiles
100 @param client_index - opaque cookie to identify the sender
101 @param context - sender context, to match reply w/ request
102 @param id - id of the profile
104 define pot_profile_show_config_dump {
110 /** \brief Show POT profile reply
111 @param id - id of the profile
112 @param validator - True/False to indicate if this is verifier
113 @param secret_key - Verification key
114 @param secret_share - Share of the 1st polynomial
115 @param prime - Prime number used for modulo operation
116 @param max_bits - Max bits to be used for Random number generation
117 @param lpc - Lagrange basis polynomial
118 @param polynomial_public - pre-evaluated public polynomial
119 @param list_name_len - length of the name of this profile list
120 @param list_name - name of this profile list
122 define pot_profile_show_config_details {
132 u64 polynomial_public;