|
M4RIE 20250128
|
\(\mathbb{F}_{2^e}\) More...
#include <m4ri/m4ri.h>#include <m4rie/gf2x.h>Go to the source code of this file.
Data Structures | |
| struct | gf2e_struct |
| \(\mathbb{F}_{2^e}\) More... | |
Macros | |
| #define | M4RIE_DLL_EXPORT |
| #define | M4RIE_MAX_DEGREE 16 |
| maximal supported degree | |
Typedefs | |
| typedef struct gf2e_struct | gf2e |
| \(\mathbb{F}_{2^e}\) | |
Functions | |
| gf2e * | gf2e_init (const word minpoly) |
| void | gf2e_free (gf2e *ff) |
| static word | gf2e_inv (const gf2e *ff, word a) |
| a^(-1) % minpoly | |
| static word | _gf2e_mul_table (const gf2e *ff, const word a, const word b) |
| a*b in \(\mathbb{F}_{2^e}\) using a table lookups. | |
| static word | _gf2e_mul_arith (const gf2e *ff, const word a, const word b) |
| a*b in \(\mathbb{F}_{2^e}\) using a gf2x_mul() lookups. | |
| static word | gf2e_mul (const gf2e *ff, const word a, const word b) |
| a*b in \(\mathbb{F}_{2^e}\). | |
| static size_t | gf2e_degree_to_w (const gf2e *ff) |
| static word * | gf2e_t16_init (const gf2e *ff, const word a) |
| static void | gf2e_t16_free (word *mul) |
| Free multiplication table. | |
Variables | |
| M4RIE_DLL_EXPORT const word * | irreducible_polynomials [17] |
| all Irreducible polynomials over GF(2) up to degree 16. | |
\(\mathbb{F}_{2^e}\)
|
inlinestatic |
Return the width used for storing elements of ff
| ff | Finite field. |
| void gf2e_free | ( | gf2e * | ff | ) |
Free ff
| ff | Finite field. |
| gf2e * gf2e_init | ( | const word | minpoly | ) |
Create finite field from minimal polynomial
| minpoly | Polynomial represented as series of bits. |
red
pow_gen: X^i
mul tables
|
inlinestatic |
Free multiplication table.
| mul | Multiplication table |