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

Go to the source code of this file.

Data Structures

struct  md4_ctx
 

Macros

#define MD4_DIGEST_SIZE   16
 
#define MD4_HMAC_BLOCK_SIZE   64
 
#define MD4_BLOCK_WORDS   16
 
#define MD4_HASH_WORDS   4
 
#define ROUND1(a, b, c, d, k, s)   (a = lshift(a + F(b,c,d) + k, s))
 
#define ROUND2(a, b, c, d, k, s)   (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s))
 
#define ROUND3(a, b, c, d, k, s)   (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s))
 

Functions

 module_init (md4_mod_init)
 
 module_exit (md4_mod_fini)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("MD4 Message Digest Algorithm")
 

Macro Definition Documentation

#define MD4_BLOCK_WORDS   16

Definition at line 33 of file md4.c.

#define MD4_DIGEST_SIZE   16

Definition at line 31 of file md4.c.

#define MD4_HASH_WORDS   4

Definition at line 34 of file md4.c.

#define MD4_HMAC_BLOCK_SIZE   64

Definition at line 32 of file md4.c.

#define ROUND1 (   a,
  b,
  c,
  d,
  k,
  s 
)    (a = lshift(a + F(b,c,d) + k, s))

Definition at line 63 of file md4.c.

#define ROUND2 (   a,
  b,
  c,
  d,
  k,
  s 
)    (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s))

Definition at line 64 of file md4.c.

#define ROUND3 (   a,
  b,
  c,
  d,
  k,
  s 
)    (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s))

Definition at line 65 of file md4.c.

Function Documentation

MODULE_DESCRIPTION ( "MD4 Message Digest Algorithm"  )
module_exit ( md4_mod_fini  )
module_init ( md4_mod_init  )
MODULE_LICENSE ( "GPL"  )