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) |
|
◆ clear_pot_profile_command_fn()
◆ clear_pot_profiles()
void clear_pot_profiles |
( |
| ) |
|
◆ pot_generate_random()
◆ pot_main_profiles_reset()
static void pot_main_profiles_reset |
( |
void |
| ) |
|
|
static |
◆ pot_profile_cleanup()
static void pot_profile_cleanup |
( |
pot_profile * |
profile | ) |
|
|
static |
◆ pot_profile_create()
◆ pot_profile_find()
◆ pot_profile_init()
◆ pot_profile_list_init()
void pot_profile_list_init |
( |
u8 * |
profile_list_name | ) |
|
◆ pot_profile_list_is_enabled()
int pot_profile_list_is_enabled |
( |
u8 * |
name | ) |
|
◆ pot_profile_name_equal()
static int pot_profile_name_equal |
( |
u8 * |
name0, |
|
|
u8 * |
name1 |
|
) |
| |
|
static |
◆ pot_profile_set_bit_mask()
◆ pot_set_validator()
◆ pot_update_cumulative()
◆ pot_update_cumulative_inline()
static u64 pot_update_cumulative_inline |
( |
u64 |
cumulative, |
|
|
u64 |
random, |
|
|
u64 |
secret_share, |
|
|
u64 |
prime, |
|
|
u64 |
lpc, |
|
|
u64 |
pre_split, |
|
|
double |
prime_inv |
|
) |
| |
|
inlinestatic |
◆ pot_util_init()
int pot_util_init |
( |
void |
| ) |
|
◆ pot_validate()
◆ pot_validate_inline()
static u8 pot_validate_inline |
( |
u64 |
secret, |
|
|
u64 |
prime, |
|
|
double |
prime_inv, |
|
|
u64 |
cumulative, |
|
|
u64 |
random |
|
) |
| |
|
inlinestatic |
◆ set_pot_profile_activate_command_fn()
◆ set_pot_profile_command_fn()
◆ show_pot_profile_command_fn()
◆ clear_pot_profile_command
Initial value:=
{
.path = "clear pot profile",
.short_help = "clear pot profile [<index>|all]",
}
(constructor) VLIB_CLI_COMMAND (clear_pot_profile_command)
Definition at line 269 of file pot_util.c.
◆ pot_main
◆ set_pot_profile_activate_command
Initial value:=
{
.path = "set pot profile-active",
.short_help = "set pot profile-active name <string> id [0-1]",
}
(constructor) VLIB_CLI_COMMAND (set_pot_profile_activate_command)
Definition at line 376 of file pot_util.c.
◆ set_pot_profile_command
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] ",
}
(constructor) VLIB_CLI_COMMAND (set_pot_profile_command)
Definition at line 333 of file pot_util.c.
◆ show_pot_profile_command
Initial value:=
{
.path = "show pot profile",
.short_help = "show pot profile",
}
(constructor) VLIB_CLI_COMMAND (show_pot_profile_command)
Definition at line 440 of file pot_util.c.