Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
fcrypt.c File Reference
#include <asm/byteorder.h>
#include <linux/bitops.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/crypto.h>

Go to the source code of this file.

Data Structures

struct  fcrypt_ctx
 

Macros

#define ROUNDS   16
 
#define ror56(hi, lo, n)
 
#define ror56_64(k, n)
 
#define Z(x)   cpu_to_be32(x << 3)
 
#define Z(x)   cpu_to_be32((x << 27) | (x >> 5))
 
#define Z(x)   cpu_to_be32(x << 11)
 
#define Z(x)   cpu_to_be32(x << 19)
 
#define F_ENCRYPT(R, L, sched)
 

Functions

 module_init (fcrypt_mod_init)
 
 module_exit (fcrypt_mod_fini)
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 MODULE_DESCRIPTION ("FCrypt Cipher Algorithm")
 
 MODULE_AUTHOR ("David Howells <[email protected]>")
 

Macro Definition Documentation

#define F_ENCRYPT (   R,
  L,
  sched 
)
Value:
do { \
union lc4 { __be32 l; u8 c[4]; } u; \
u.l = sched ^ R; \
L ^= sbox0[u.c[0]] ^ sbox1[u.c[1]] ^ sbox2[u.c[2]] ^ sbox3[u.c[3]]; \
} while (0)

Definition at line 226 of file fcrypt.c.

#define ror56 (   hi,
  lo,
  n 
)
Value:
do { \
u32 t = lo & ((1 << n) - 1); \
lo = (lo >> n) | ((hi & ((1 << n) - 1)) << (32 - n)); \
hi = (hi >> n) | (t << (24-n)); \
} while (0)

Definition at line 58 of file fcrypt.c.

#define ror56_64 (   k,
  n 
)
Value:
do { \
k = (k >> n) | ((k & ((1 << n) - 1)) << (56 - n)); \
} while (0)

Definition at line 66 of file fcrypt.c.

#define ROUNDS   16

Definition at line 51 of file fcrypt.c.

#define Z (   x)    cpu_to_be32(x << 3)

Definition at line 187 of file fcrypt.c.

#define Z (   x)    cpu_to_be32((x << 27) | (x >> 5))

Definition at line 187 of file fcrypt.c.

#define Z (   x)    cpu_to_be32(x << 11)

Definition at line 187 of file fcrypt.c.

#define Z (   x)    cpu_to_be32(x << 19)

Definition at line 187 of file fcrypt.c.

Function Documentation

MODULE_AUTHOR ( "David Howells <[email protected]>"  )
MODULE_DESCRIPTION ( "FCrypt Cipher Algorithm"  )
module_exit ( fcrypt_mod_fini  )
module_init ( fcrypt_mod_init  )
MODULE_LICENSE ( "Dual BSD/GPL"  )