CRS
Isogeny-based post-quantum Diffie-Hellman protocol.
src
Exchange
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
14
typedef
struct
key__t
{
15
16
uint nb_primes;
17
lprime_t
*lprimes;
18
fmpz_t *steps;
19
}
key__t
;
20
21
void
key_init(
key__t
*,
cfg_t
*);
22
key__t
*key_init_(
cfg_t
*);
23
void
keygen(
key__t
*,
cfg_t
*, uint, flint_rand_t);
24
key__t
*keygen_(
cfg_t
*, uint, flint_rand_t);
25
void
key_clear(
key__t
*);
26
27
void
key_print(
key__t
*);
28
#endif
29
cfg_t
Definition:
setup.h:40
key__t
Definition:
keygen.h:14
lprime_t
Definition:
setup.h:27
Generated by
1.9.2