Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
blowfish_common.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

int blowfish_setkey (struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
 
 EXPORT_SYMBOL_GPL (blowfish_setkey)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Blowfish Cipher common functions")
 

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 306 of file blowfish_common.c.

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

Definition at line 304 of file blowfish_common.c.

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

Definition at line 303 of file blowfish_common.c.

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

Definition at line 302 of file blowfish_common.c.

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

Definition at line 301 of file blowfish_common.c.

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

Definition at line 309 of file blowfish_common.c.

Function Documentation

int blowfish_setkey ( struct crypto_tfm tfm,
const u8 key,
unsigned int  keylen 
)

Definition at line 349 of file blowfish_common.c.

EXPORT_SYMBOL_GPL ( blowfish_setkey  )
MODULE_DESCRIPTION ( "Blowfish Cipher common functions"  )
MODULE_LICENSE ( "GPL"  )