libtc
20160415
Threshold Cryptography functions library
|
#include <assert.h>
#include <gmp.h>
#include <stdio.h>
#include "mathutils.h"
#include "tc.h"
#include "tc_internal.h"
Go to the source code of this file.
Functions | |
void | generate_safe_prime (mpz_t out, int bit_len, random_fn random) |
key_share_t ** | tc_generate_keys (key_metainfo_t **out, size_t bit_size, uint16_t k, uint16_t l, bytes_t *public_e) |
void generate_safe_prime | ( | mpz_t | out, |
int | bit_len, | ||
random_fn | random | ||
) |
Definition at line 12 of file algorithms_generate_keys.c.
key_share_t** tc_generate_keys | ( | key_metainfo_t ** | out, |
size_t | bit_size, | ||
uint16_t | k, | ||
uint16_t | l, | ||
bytes_t * | public_e | ||
) |
Generates ll shares, with a threshold of k.
Definition at line 42 of file algorithms_generate_keys.c.