CiFEr
Data Structures | Typedefs | Functions
keygen.h File Reference

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)
 

Detailed Description

ElGamal key generation.

Function Documentation

◆ cfe_elgamal_init()

cfe_error cfe_elgamal_init ( cfe_elgamal key,
size_t  modulus_len 
)

Initializes the cfe_elgamal struct.

Parameters
keyA pointer to an uninitialized cfe_elgamal struct
modulus_lenThe bit length of the modulus
Returns
Error code

◆ cfe_elgamal_free()

void cfe_elgamal_free ( cfe_elgamal key)

Frees the memory occupied by the members of the struct.

Parameters
keyA pointer to an initialized cfe_elgamal struct