Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sha256_generic.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 <crypto/sha.h>
#include <asm/byteorder.h>

Go to the source code of this file.

Macros

#define e0(x)   (ror32(x, 2) ^ ror32(x,13) ^ ror32(x,22))
 
#define e1(x)   (ror32(x, 6) ^ ror32(x,11) ^ ror32(x,25))
 
#define s0(x)   (ror32(x, 7) ^ ror32(x,18) ^ (x >> 3))
 
#define s1(x)   (ror32(x,17) ^ ror32(x,19) ^ (x >> 10))
 

Functions

 module_init (sha256_generic_mod_init)
 
 module_exit (sha256_generic_mod_fini)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("SHA-224 and SHA-256 Secure Hash Algorithm")
 
 MODULE_ALIAS ("sha224")
 
 MODULE_ALIAS ("sha256")
 

Macro Definition Documentation

#define e0 (   x)    (ror32(x, 2) ^ ror32(x,13) ^ ror32(x,22))

Definition at line 38 of file sha256_generic.c.

#define e1 (   x)    (ror32(x, 6) ^ ror32(x,11) ^ ror32(x,25))

Definition at line 39 of file sha256_generic.c.

#define s0 (   x)    (ror32(x, 7) ^ ror32(x,18) ^ (x >> 3))

Definition at line 40 of file sha256_generic.c.

#define s1 (   x)    (ror32(x,17) ^ ror32(x,19) ^ (x >> 10))

Definition at line 41 of file sha256_generic.c.

Function Documentation

MODULE_ALIAS ( "sha224"  )
MODULE_ALIAS ( "sha256"  )
MODULE_DESCRIPTION ( "SHA-224 and SHA-256 Secure Hash Algorithm"  )
module_exit ( sha256_generic_mod_fini  )
module_init ( sha256_generic_mod_init  )
MODULE_LICENSE ( "GPL"  )