Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
gf128mul.c File Reference
#include <crypto/gf128mul.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>

Go to the source code of this file.

Macros

#define gf128mul_dat(q)
 
#define xx(p, q)   0x##p##q
 
#define xda_bbe(i)
 
#define xda_lle(i)
 

Functions

void gf128mul_x_ble (be128 *r, const be128 *x)
 
 EXPORT_SYMBOL (gf128mul_x_ble)
 
void gf128mul_lle (be128 *r, const be128 *b)
 
 EXPORT_SYMBOL (gf128mul_lle)
 
void gf128mul_bbe (be128 *r, const be128 *b)
 
 EXPORT_SYMBOL (gf128mul_bbe)
 
struct gf128mul_64kgf128mul_init_64k_lle (const be128 *g)
 
 EXPORT_SYMBOL (gf128mul_init_64k_lle)
 
struct gf128mul_64kgf128mul_init_64k_bbe (const be128 *g)
 
 EXPORT_SYMBOL (gf128mul_init_64k_bbe)
 
void gf128mul_free_64k (struct gf128mul_64k *t)
 
 EXPORT_SYMBOL (gf128mul_free_64k)
 
void gf128mul_64k_lle (be128 *a, struct gf128mul_64k *t)
 
 EXPORT_SYMBOL (gf128mul_64k_lle)
 
void gf128mul_64k_bbe (be128 *a, struct gf128mul_64k *t)
 
 EXPORT_SYMBOL (gf128mul_64k_bbe)
 
struct gf128mul_4kgf128mul_init_4k_lle (const be128 *g)
 
 EXPORT_SYMBOL (gf128mul_init_4k_lle)
 
struct gf128mul_4kgf128mul_init_4k_bbe (const be128 *g)
 
 EXPORT_SYMBOL (gf128mul_init_4k_bbe)
 
void gf128mul_4k_lle (be128 *a, struct gf128mul_4k *t)
 
 EXPORT_SYMBOL (gf128mul_4k_lle)
 
void gf128mul_4k_bbe (be128 *a, struct gf128mul_4k *t)
 
 EXPORT_SYMBOL (gf128mul_4k_bbe)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Functions for multiplying elements of GF(2^128)")
 

Macro Definition Documentation

#define gf128mul_dat (   q)

Definition at line 56 of file gf128mul.c.

#define xda_bbe (   i)
Value:
( \
(i & 0x80 ? xx(43, 80) : 0) ^ (i & 0x40 ? xx(21, c0) : 0) ^ \
(i & 0x20 ? xx(10, e0) : 0) ^ (i & 0x10 ? xx(08, 70) : 0) ^ \
(i & 0x08 ? xx(04, 38) : 0) ^ (i & 0x04 ? xx(02, 1c) : 0) ^ \
(i & 0x02 ? xx(01, 0e) : 0) ^ (i & 0x01 ? xx(00, 87) : 0) \
)

Definition at line 102 of file gf128mul.c.

#define xda_lle (   i)
Value:
( \
(i & 0x80 ? xx(e1, 00) : 0) ^ (i & 0x40 ? xx(70, 80) : 0) ^ \
(i & 0x20 ? xx(38, 40) : 0) ^ (i & 0x10 ? xx(1c, 20) : 0) ^ \
(i & 0x08 ? xx(0e, 10) : 0) ^ (i & 0x04 ? xx(07, 08) : 0) ^ \
(i & 0x02 ? xx(03, 84) : 0) ^ (i & 0x01 ? xx(01, c2) : 0) \
)

Definition at line 109 of file gf128mul.c.

#define xx (   p,
  q 
)    0x##p##q

Definition at line 100 of file gf128mul.c.

Function Documentation

EXPORT_SYMBOL ( gf128mul_x_ble  )
EXPORT_SYMBOL ( gf128mul_lle  )
EXPORT_SYMBOL ( gf128mul_bbe  )
EXPORT_SYMBOL ( gf128mul_init_64k_lle  )
EXPORT_SYMBOL ( gf128mul_init_64k_bbe  )
EXPORT_SYMBOL ( gf128mul_free_64k  )
EXPORT_SYMBOL ( gf128mul_64k_lle  )
EXPORT_SYMBOL ( gf128mul_64k_bbe  )
EXPORT_SYMBOL ( gf128mul_init_4k_lle  )
EXPORT_SYMBOL ( gf128mul_init_4k_bbe  )
EXPORT_SYMBOL ( gf128mul_4k_lle  )
EXPORT_SYMBOL ( gf128mul_4k_bbe  )
void gf128mul_4k_bbe ( be128 a,
struct gf128mul_4k t 
)

Definition at line 461 of file gf128mul.c.

void gf128mul_4k_lle ( be128 a,
struct gf128mul_4k t 
)

Definition at line 446 of file gf128mul.c.

void gf128mul_64k_bbe ( be128 a,
struct gf128mul_64k t 
)

Definition at line 373 of file gf128mul.c.

void gf128mul_64k_lle ( be128 a,
struct gf128mul_64k t 
)

Definition at line 360 of file gf128mul.c.

void gf128mul_bbe ( be128 r,
const be128 b 
)

Definition at line 214 of file gf128mul.c.

void gf128mul_free_64k ( struct gf128mul_64k t)

Definition at line 350 of file gf128mul.c.

struct gf128mul_4k* gf128mul_init_4k_bbe ( const be128 g)
read

Definition at line 424 of file gf128mul.c.

struct gf128mul_4k* gf128mul_init_4k_lle ( const be128 g)
read

Definition at line 402 of file gf128mul.c.

struct gf128mul_64k* gf128mul_init_64k_bbe ( const be128 g)
read

Definition at line 308 of file gf128mul.c.

struct gf128mul_64k* gf128mul_init_64k_lle ( const be128 g)
read

Definition at line 266 of file gf128mul.c.

void gf128mul_lle ( be128 r,
const be128 b 
)

Definition at line 176 of file gf128mul.c.

void gf128mul_x_ble ( be128 r,
const be128 x 
)

Definition at line 145 of file gf128mul.c.

MODULE_DESCRIPTION ( "Functions for multiplying elements of GF(2^128)"  )
MODULE_LICENSE ( "GPL"  )