Go to the source code of this file.
#define BPU_GF2_POLY_DEG_10 0x71d |
#define BPU_GF2_POLY_DEG_11 0x805 |
#define BPU_GF2_POLY_DEG_5 0x3b |
#define BPU_GF2_POLY_DEG_6 0x43 |
Representation of aritmetics data.
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.