Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ghash-clmulni-intel_glue.c File Reference
#include <linux/err.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/crypto.h>
#include <crypto/algapi.h>
#include <crypto/cryptd.h>
#include <crypto/gf128mul.h>
#include <crypto/internal/hash.h>
#include <asm/i387.h>
#include <asm/cpu_device_id.h>

Go to the source code of this file.

Data Structures

struct  ghash_async_ctx
 
struct  ghash_ctx
 
struct  ghash_desc_ctx
 

Macros

#define GHASH_BLOCK_SIZE   16
 
#define GHASH_DIGEST_SIZE   16
 

Functions

void clmul_ghash_mul (char *dst, const be128 *shash)
 
void clmul_ghash_update (char *dst, const char *src, unsigned int srclen, const be128 *shash)
 
void clmul_ghash_setkey (be128 *shash, const u8 *key)
 
 MODULE_DEVICE_TABLE (x86cpu, pcmul_cpu_id)
 
 module_init (ghash_pclmulqdqni_mod_init)
 
 module_exit (ghash_pclmulqdqni_mod_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("GHASH Message Digest Algorithm, ""acclerated by PCLMULQDQ-NI")
 
 MODULE_ALIAS ("ghash")
 

Macro Definition Documentation

#define GHASH_BLOCK_SIZE   16

Definition at line 25 of file ghash-clmulni-intel_glue.c.

#define GHASH_DIGEST_SIZE   16

Definition at line 26 of file ghash-clmulni-intel_glue.c.

Function Documentation

void clmul_ghash_mul ( char dst,
const be128 shash 
)
void clmul_ghash_setkey ( be128 shash,
const u8 key 
)
void clmul_ghash_update ( char dst,
const char src,
unsigned int  srclen,
const be128 shash 
)
MODULE_ALIAS ( "ghash"  )
MODULE_DESCRIPTION ( "GHASH Message Digest  Algorithm,
""acclerated by PCLMULQDQ-NI  
)
MODULE_DEVICE_TABLE ( x86cpu  ,
pcmul_cpu_id   
)
module_exit ( ghash_pclmulqdqni_mod_exit  )
module_init ( ghash_pclmulqdqni_mod_init  )
MODULE_LICENSE ( "GPL"  )