keypair.c File Reference

#include <stdlib.h>
#include <string.h>
#include "sizes.h"
#include "gf.h"
#include "poly.h"
#include "matrix.h"

Include dependency graph for keypair.c:

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)


Function Documentation

void gop_supr ( int  n,
gf_t L 
)

Definition at line 38 of file keypair.c.

References u32rnd().

Referenced by keypair().

Here is the call graph for this function:

binmat_t key_genmat ( gf_t L,
poly_t  g 
)

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().

Here is the call graph for this function:

int keypair ( unsigned char *  sk,
unsigned char *  pk 
)

__inline unsigned int u32rnd (  ) 

Definition at line 30 of file keypair.c.

References u8rnd().

Referenced by gop_supr().

Here is the call graph for this function:

__inline int u8rnd (  ) 

Definition at line 28 of file keypair.c.

Referenced by gf_rand(), keypair(), poly_randgen_irred(), and u32rnd().


This work was partially suported by Europian Network of Excellence, ECRYPT; ECRYPT