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

Go to the source code of this file.

Data Structures

struct  rmd128_ctx
 

Macros

#define K1   RMD_K1
 
#define K2   RMD_K2
 
#define K3   RMD_K3
 
#define K4   RMD_K4
 
#define KK1   RMD_K6
 
#define KK2   RMD_K7
 
#define KK3   RMD_K8
 
#define KK4   RMD_K1
 
#define F1(x, y, z)   (x ^ y ^ z) /* XOR */
 
#define F2(x, y, z)   (z ^ (x & (y ^ z))) /* x ? y : z */
 
#define F3(x, y, z)   ((x | ~y) ^ z)
 
#define F4(x, y, z)   (y ^ (z & (x ^ y))) /* z ? x : y */
 
#define ROUND(a, b, c, d, f, k, x, s)
 

Functions

 module_init (rmd128_mod_init)
 
 module_exit (rmd128_mod_fini)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Adrian-Ken Rueegsegger <[email protected]>")
 
 MODULE_DESCRIPTION ("RIPEMD-128 Message Digest")
 

Macro Definition Documentation

#define F1 (   x,
  y,
 
)    (x ^ y ^ z) /* XOR */

Definition at line 40 of file rmd128.c.

#define F2 (   x,
  y,
 
)    (z ^ (x & (y ^ z))) /* x ? y : z */

Definition at line 41 of file rmd128.c.

#define F3 (   x,
  y,
 
)    ((x | ~y) ^ z)

Definition at line 42 of file rmd128.c.

#define F4 (   x,
  y,
 
)    (y ^ (z & (x ^ y))) /* z ? x : y */

Definition at line 43 of file rmd128.c.

#define K1   RMD_K1

Definition at line 31 of file rmd128.c.

#define K2   RMD_K2

Definition at line 32 of file rmd128.c.

#define K3   RMD_K3

Definition at line 33 of file rmd128.c.

#define K4   RMD_K4

Definition at line 34 of file rmd128.c.

#define KK1   RMD_K6

Definition at line 35 of file rmd128.c.

#define KK2   RMD_K7

Definition at line 36 of file rmd128.c.

#define KK3   RMD_K8

Definition at line 37 of file rmd128.c.

#define KK4   RMD_K1

Definition at line 38 of file rmd128.c.

#define ROUND (   a,
  b,
  c,
  d,
  f,
  k,
  x,
  s 
)
Value:
{ \
(a) += f((b), (c), (d)) + le32_to_cpup(&(x)) + (k); \
(a) = rol32((a), (s)); \
}

Definition at line 45 of file rmd128.c.

Function Documentation

MODULE_AUTHOR ( "Adrian-Ken Rueegsegger <[email protected]>"  )
MODULE_DESCRIPTION ( "RIPEMD-128 Message Digest"  )
module_exit ( rmd128_mod_fini  )
module_init ( rmd128_mod_init  )
MODULE_LICENSE ( "GPL"  )