#include "mathctx.h"
#include "gf2x.h"
#include <bitpunch/debugio.h>
#include <stdlib.h>
Go to the source code of this file.
Free dynamiccaly or statically allocated Aritmetic_Data structure.
Free dynamiccaly or statically allocated Aritmetic_Data structure.
- Parameters
-
a | aaddress of Aritmetic_Data structure |
is_dyn | 0 - staticaly allocated Aritmetic_Data object or 1 when dynamically |
Definition at line 67 of file mathctx.c.
Precalculate logaritmic and exponencial tables and initialize structure Aritmetic_Data.
Precalculate logaritmic and exponencial tables and initialize structure Aritmetic_Data
- Parameters
-
g | is a group generator |
mod | modulus, ireducible polynomial |
- Returns
- number of elements or < 0 means error
Definition at line 24 of file mathctx.c.