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

Go to the source code of this file.

Macros

#define GET32_3(x)   (((x) & 0xff))
 
#define GET32_2(x)   (((x) >> (8)) & (0xff))
 
#define GET32_1(x)   (((x) >> (16)) & (0xff))
 
#define GET32_0(x)   (((x) >> (24)) & (0xff))
 
#define bf_F(x)
 
#define ROUND(a, b, n)   ({ b ^= P[n]; a ^= bf_F(b); })
 

Functions

 module_init (blowfish_mod_init)
 
 module_exit (blowfish_mod_fini)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Blowfish Cipher Algorithm")
 
 MODULE_ALIAS ("blowfish")
 

Macro Definition Documentation

#define bf_F (   x)
Value:
(((S[GET32_0(x)] + S[256 + GET32_1(x)]) ^ \
S[512 + GET32_2(x)]) + S[768 + GET32_3(x)])

Definition at line 36 of file blowfish_generic.c.

#define GET32_0 (   x)    (((x) >> (24)) & (0xff))

Definition at line 34 of file blowfish_generic.c.

#define GET32_1 (   x)    (((x) >> (16)) & (0xff))

Definition at line 33 of file blowfish_generic.c.

#define GET32_2 (   x)    (((x) >> (8)) & (0xff))

Definition at line 32 of file blowfish_generic.c.

#define GET32_3 (   x)    (((x) & 0xff))

Definition at line 31 of file blowfish_generic.c.

#define ROUND (   a,
  b,
  n 
)    ({ b ^= P[n]; a ^= bf_F(b); })

Definition at line 39 of file blowfish_generic.c.

Function Documentation

MODULE_ALIAS ( "blowfish"  )
MODULE_DESCRIPTION ( "Blowfish Cipher Algorithm"  )
module_exit ( blowfish_mod_fini  )
module_init ( blowfish_mod_init  )
MODULE_LICENSE ( "GPL"  )