CiFEr
|
ElGamal key generation. More...
Go to the source code of this file.
Data Structures | |
struct | cfe_elgamal |
Typedefs | |
typedef struct cfe_elgamal | cfe_elgamal |
Functions | |
cfe_error | cfe_elgamal_init (cfe_elgamal *key, size_t modulus_len) |
void | cfe_elgamal_free (cfe_elgamal *key) |
ElGamal key generation.
cfe_error cfe_elgamal_init | ( | cfe_elgamal * | key, |
size_t | modulus_len | ||
) |
Initializes the cfe_elgamal struct.
key | A pointer to an uninitialized cfe_elgamal struct |
modulus_len | The bit length of the modulus |
void cfe_elgamal_free | ( | cfe_elgamal * | key | ) |
Frees the memory occupied by the members of the struct.
key | A pointer to an initialized cfe_elgamal struct |