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

Macros

#define K1   RMD_K1
 
#define K2   RMD_K2
 
#define K3   RMD_K3
 
#define K4   RMD_K4
 
#define K5   RMD_K5
 
#define KK1   RMD_K6
 
#define KK2   RMD_K7
 
#define KK3   RMD_K8
 
#define KK4   RMD_K9
 
#define KK5   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 F5(x, y, z)   (x ^ (y | ~z))
 
#define ROUND(a, b, c, d, e, f, k, x, s)
 

Functions

 module_init (rmd320_mod_init)
 
 module_exit (rmd320_mod_fini)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Adrian-Ken Rueegsegger <[email protected]>")
 
 MODULE_DESCRIPTION ("RIPEMD-320 Message Digest")
 

Macro Definition Documentation

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

Definition at line 42 of file rmd320.c.

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

Definition at line 43 of file rmd320.c.

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

Definition at line 44 of file rmd320.c.

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

Definition at line 45 of file rmd320.c.

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

Definition at line 46 of file rmd320.c.

#define K1   RMD_K1

Definition at line 31 of file rmd320.c.

#define K2   RMD_K2

Definition at line 32 of file rmd320.c.

#define K3   RMD_K3

Definition at line 33 of file rmd320.c.

#define K4   RMD_K4

Definition at line 34 of file rmd320.c.

#define K5   RMD_K5

Definition at line 35 of file rmd320.c.

#define KK1   RMD_K6

Definition at line 36 of file rmd320.c.

#define KK2   RMD_K7

Definition at line 37 of file rmd320.c.

#define KK3   RMD_K8

Definition at line 38 of file rmd320.c.

#define KK4   RMD_K9

Definition at line 39 of file rmd320.c.

#define KK5   RMD_K1

Definition at line 40 of file rmd320.c.

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

Definition at line 48 of file rmd320.c.

Function Documentation

MODULE_AUTHOR ( "Adrian-Ken Rueegsegger <[email protected]>"  )
MODULE_DESCRIPTION ( "RIPEMD-320 Message Digest"  )
module_exit ( rmd320_mod_fini  )
module_init ( rmd320_mod_init  )
MODULE_LICENSE ( "GPL"  )