#include <stdlib.h>
#include <string.h>
#include "sizes.h"
#include "gf.h"
#include "poly.h"
#include "matrix.h"
Go to the source code of this file.
Functions | |
__inline int | u8rnd () |
__inline unsigned int | u32rnd () |
void | gop_supr (int n, gf_t *L) |
binmat_t | key_genmat (gf_t *L, poly_t g) |
int | keypair (unsigned char *sk, unsigned char *pk) |
void gop_supr | ( | int | n, | |
gf_t * | L | |||
) |
Definition at line 54 of file keypair.c.
References matrix::coln, EXT_DEGREE, gf_inv, gf_mul, LENGTH, mat_change_coeff, mat_coeff, mat_free(), mat_ini(), mat_rref(), mat_set_coeff_to_one, mat_set_to_zero, NB_ERRORS, poly_eval(), and matrix::rown.
Referenced by keypair().
int keypair | ( | unsigned char * | sk, | |
unsigned char * | pk | |||
) |
Definition at line 112 of file keypair.c.
References matrix::alloc_size, BIT_SIZE_OF_LONG, BITS_TO_LONG, CODIMENSION, polynome::coeff, matrix::elem, EXT_DEGREE, g, gf_init(), gop_supr(), key_genmat(), LENGTH, Linv, mat_free(), NB_ERRORS, poly_coeff, poly_free(), poly_randgen_irred(), poly_sqrtmod_init(), poly_syndrome_init(), sqrtmod, and u8rnd().
Referenced by main().
__inline unsigned int u32rnd | ( | ) |
Definition at line 30 of file keypair.c.
References u8rnd().
Referenced by gop_supr().
__inline int u8rnd | ( | ) |