#include <stdio.h>
#include <stdlib.h>
#include "gf.h"
Go to the source code of this file.
Defines | |
#define | MAX_EXT_DEG 16 |
Functions | |
void | gf_init_exp () |
void | gf_init_log () |
int | gf_init (int extdeg) |
gf_t | gf_pow (gf_t x, int i) |
gf_t | gf_rand (int(*u8rnd)()) |
Variables | |
static unsigned | prim_poly [MAX_EXT_DEG+1] |
int | init_done = 0 |
int gf_init | ( | int | extdeg | ) |
Definition at line 83 of file gf.c.
References gf_cardinality, gf_exp, gf_extension_degree, gf_init_exp(), gf_init_log(), gf_log, gf_multiplicative_order, init_done, and MAX_EXT_DEG.
Referenced by decode(), and keypair().
void gf_init_exp | ( | ) |
void gf_init_log | ( | ) |
gf_t gf_rand | ( | int(*)() | u8rnd | ) |
Definition at line 122 of file gf.c.
References gf_ord, and u8rnd().
Referenced by poly_randgen_irred().
unsigned prim_poly[MAX_EXT_DEG+1] [static] |
Initial value:
{ 01, 03, 07, 013, 023, 045, 0103, 0203, 0435, 01041, 02011, 04005, 010123, 020033, 042103, 0100003, 0210013 }
Definition at line 28 of file gf.c.
Referenced by gf_init_exp().