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

Go to the source code of this file.

Macros

#define e0(x)   (ror64(x,28) ^ ror64(x,34) ^ ror64(x,39))
 
#define e1(x)   (ror64(x,14) ^ ror64(x,18) ^ ror64(x,41))
 
#define s0(x)   (ror64(x, 1) ^ ror64(x, 8) ^ (x >> 7))
 
#define s1(x)   (ror64(x,19) ^ ror64(x,61) ^ (x >> 6))
 

Functions

 module_init (sha512_generic_mod_init)
 
 module_exit (sha512_generic_mod_fini)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("SHA-512 and SHA-384 Secure Hash Algorithms")
 
 MODULE_ALIAS ("sha384")
 
 MODULE_ALIAS ("sha512")
 

Macro Definition Documentation

#define e0 (   x)    (ror64(x,28) ^ ror64(x,34) ^ ror64(x,39))

Definition at line 64 of file sha512_generic.c.

#define e1 (   x)    (ror64(x,14) ^ ror64(x,18) ^ ror64(x,41))

Definition at line 65 of file sha512_generic.c.

#define s0 (   x)    (ror64(x, 1) ^ ror64(x, 8) ^ (x >> 7))

Definition at line 66 of file sha512_generic.c.

#define s1 (   x)    (ror64(x,19) ^ ror64(x,61) ^ (x >> 6))

Definition at line 67 of file sha512_generic.c.

Function Documentation

MODULE_ALIAS ( "sha384"  )
MODULE_ALIAS ( "sha512"  )
MODULE_DESCRIPTION ( "SHA-512 and SHA-384 Secure Hash Algorithms"  )
module_exit ( sha512_generic_mod_fini  )
module_init ( sha512_generic_mod_init  )
MODULE_LICENSE ( "GPL"  )