CRS
Isogeny-based post-quantum Diffie-Hellman protocol.
keygen.h
1#ifndef _KEYGEN_H_
2#define _KEYGEN_H_
3
4#include <stdio.h>
5#include <stdlib.h>
6#include <time.h>
7
8#include "setup.h"
9
10#include <gmp.h>
11#include <flint/fmpz.h>
12#include <flint/fq.h>
13
14typedef struct key__t {
15
16 uint nb_primes;
17 lprime_t *lprimes;
18 fmpz_t *steps;
19} key__t;
20
21void key_init(key__t *, cfg_t *);
22key__t *key_init_(cfg_t *);
23void keygen(key__t *, cfg_t *, uint, flint_rand_t);
24key__t *keygen_(cfg_t *, uint, flint_rand_t);
25void key_clear(key__t *);
26
27void key_print(key__t *);
28#endif
29
Definition: setup.h:40
Definition: keygen.h:14
Definition: setup.h:27