LIBFMSR
0.1
|
Contains prototypes for functions implemented in gf.c. More...
#include <stdlib.h>
Go to the source code of this file.
Defines | |
#define | LIBFMSR_GF |
Typedefs | |
typedef unsigned char | gf |
Functions | |
void | gf_init (void) |
gf | gf_mul (gf a, gf b) |
gf | gf_div (gf a, gf b) |
gf | gf_inv (gf a) |
gf | gf_log (gf a) |
gf | gf_x (gf a) |
void | gf_mul_bytes (gf *a, size_t len, gf b, gf *c) |
Multiplies all (len) bytes in a[] by b, store results in c[]. | |
void | gf_mulxor_bytes (gf *a, size_t len, gf b, gf *c) |
Multiplies all (len) bytes in a[] by b, bitwise xor results to c[]. |
Contains prototypes for functions implemented in gf.c.
#define LIBFMSR_GF |
typedef unsigned char gf |
void gf_init | ( | void | ) |
void gf_mul_bytes | ( | gf * | a, |
size_t | len, | ||
gf | b, | ||
gf * | c | ||
) |
Multiplies all (len) bytes in a[] by b, store results in c[].
a[] and c[] can be the same location.
void gf_mulxor_bytes | ( | gf * | a, |
size_t | len, | ||
gf | b, | ||
gf * | c | ||
) |
Multiplies all (len) bytes in a[] by b, bitwise xor results to c[].
a[] and c[] can be the same location.