Go to the source code of this file.
|
static void | pot_profile_cleanup (pot_profile *profile) |
|
static void | pot_main_profiles_reset (void) |
|
int | pot_util_init (void) |
|
static void | pot_profile_init (pot_profile *new, u8 id) |
|
pot_profile * | pot_profile_find (u8 id) |
|
static int | pot_profile_name_equal (u8 *name0, u8 *name1) |
|
int | pot_profile_list_is_enabled (u8 *name) |
|
void | pot_profile_list_init (u8 *profile_list_name) |
|
int | pot_profile_create (pot_profile *profile, u64 prime, u64 poly2, u64 lpc, u64 secret_share) |
|
int | pot_set_validator (pot_profile *profile, u64 key) |
|
static u64 | pot_update_cumulative_inline (u64 cumulative, u64 random, u64 secret_share, u64 prime, u64 lpc, u64 pre_split, double prime_inv) |
|
u64 | pot_update_cumulative (pot_profile *profile, u64 cumulative, u64 random) |
|
static u8 | pot_validate_inline (u64 secret, u64 prime, double prime_inv, u64 cumulative, u64 random) |
|
u8 | pot_validate (pot_profile *profile, u64 cumulative, u64 random) |
|
u64 | pot_generate_random (pot_profile *profile) |
|
int | pot_profile_set_bit_mask (pot_profile *profile, u16 bits) |
|
clib_error_t * | clear_pot_profile_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
void | clear_pot_profiles () |
|
static clib_error_t * | set_pot_profile_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | set_pot_profile_activate_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | show_pot_profile_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
void clear_pot_profiles |
( |
| ) |
|
static void pot_main_profiles_reset |
( |
void |
| ) |
|
|
static |
static void pot_profile_cleanup |
( |
pot_profile * |
profile | ) |
|
|
static |
void pot_profile_list_init |
( |
u8 * |
profile_list_name | ) |
|
int pot_profile_list_is_enabled |
( |
u8 * |
name | ) |
|
static int pot_profile_name_equal |
( |
u8 * |
name0, |
|
|
u8 * |
name1 |
|
) |
| |
|
static |
static u64 pot_update_cumulative_inline |
( |
u64 |
cumulative, |
|
|
u64 |
random, |
|
|
u64 |
secret_share, |
|
|
u64 |
prime, |
|
|
u64 |
lpc, |
|
|
u64 |
pre_split, |
|
|
double |
prime_inv |
|
) |
| |
|
inlinestatic |
int pot_util_init |
( |
void |
| ) |
|
static u8 pot_validate_inline |
( |
u64 |
secret, |
|
|
u64 |
prime, |
|
|
double |
prime_inv, |
|
|
u64 |
cumulative, |
|
|
u64 |
random |
|
) |
| |
|
inlinestatic |
Initial value:=
{
.path = "clear pot profile",
.short_help = "clear pot profile [<index>|all]",
}
clib_error_t * clear_pot_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (clear_pot_profile_command)
Definition at line 269 of file pot_util.c.
Initial value:=
{
.path = "set pot profile-active",
.short_help = "set pot profile-active name <string> id [0-1]",
}
static clib_error_t * set_pot_profile_activate_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (set_pot_profile_activate_command)
Definition at line 377 of file pot_util.c.
Initial value:=
{
.path = "set pot profile",
.short_help = "set pot profile name <string> id [0-1] [validator-key 0xu64] \
prime-number 0xu64 secret_share 0xu64 lpc 0xu64 \
polynomial2 0xu64 bits-in-random [0-64] ",
}
static clib_error_t * set_pot_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (set_pot_profile_command)
Definition at line 334 of file pot_util.c.
Initial value:=
{
.path = "show pot profile",
.short_help = "show pot profile",
}
static clib_error_t * show_pot_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (show_pot_profile_command)
Definition at line 441 of file pot_util.c.