LIBFMSR  0.1
Defines | Typedefs | Functions
gf.h File Reference

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[].

Detailed Description

Contains prototypes for functions implemented in gf.c.

Author:
Henry Chen (chchen@cse.cuhk.edu.hk)

Define Documentation

#define LIBFMSR_GF

Typedef Documentation

typedef unsigned char gf

Function Documentation

gf gf_div ( gf  a,
gf  b 
)
void gf_init ( void  )
gf gf_inv ( gf  a)
gf gf_log ( gf  a)
gf gf_mul ( gf  a,
gf  b 
)
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.

gf gf_x ( gf  a)
 All Data Structures Files Functions Variables Typedefs Defines