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

Go to the source code of this file.

Macros

#define F(x, y, z)   ((z) ^ ((x) & ((y) ^ (z))))
 
#define G(x, y, z)   (((x) & (y)) + (((x) ^ (y)) & (z)))
 
#define H(x, y, z)   ((x) ^ (y) ^ (z))
 
#define ROUND(f, a, b, c, d, x, s)   (a += f(b, c, d) + x, a = (a << s) | (a >> (32 - s)))
 
#define K1   0
 
#define K2   013240474631UL
 
#define K3   015666365641UL
 

Functions

__u32 half_md4_transform (__u32 buf[4], __u32 const in[8])
 
 EXPORT_SYMBOL (half_md4_transform)
 

Macro Definition Documentation

#define F (   x,
  y,
 
)    ((z) ^ ((x) & ((y) ^ (z))))

Definition at line 6 of file halfmd4.c.

#define G (   x,
  y,
 
)    (((x) & (y)) + (((x) ^ (y)) & (z)))

Definition at line 7 of file halfmd4.c.

#define H (   x,
  y,
 
)    ((x) ^ (y) ^ (z))

Definition at line 8 of file halfmd4.c.

#define K1   0

Definition at line 18 of file halfmd4.c.

#define K2   013240474631UL

Definition at line 19 of file halfmd4.c.

#define K3   015666365641UL

Definition at line 20 of file halfmd4.c.

#define ROUND (   f,
  a,
  b,
  c,
  d,
  x,
  s 
)    (a += f(b, c, d) + x, a = (a << s) | (a >> (32 - s)))

Definition at line 16 of file halfmd4.c.

Function Documentation

EXPORT_SYMBOL ( half_md4_transform  )
__u32 half_md4_transform ( __u32  buf[4],
__u32 const  in[8] 
)

Definition at line 25 of file halfmd4.c.