Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
shash.c File Reference
#include <crypto/scatterwalk.h>
#include <crypto/internal/hash.h>
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/seq_file.h>
#include <linux/cryptouser.h>
#include <net/netlink.h>
#include "internal.h"

Go to the source code of this file.

Functions

int crypto_shash_setkey (struct crypto_shash *tfm, const u8 *key, unsigned int keylen)
 
 EXPORT_SYMBOL_GPL (crypto_shash_setkey)
 
int crypto_shash_update (struct shash_desc *desc, const u8 *data, unsigned int len)
 
 EXPORT_SYMBOL_GPL (crypto_shash_update)
 
int crypto_shash_final (struct shash_desc *desc, u8 *out)
 
 EXPORT_SYMBOL_GPL (crypto_shash_final)
 
int crypto_shash_finup (struct shash_desc *desc, const u8 *data, unsigned int len, u8 *out)
 
 EXPORT_SYMBOL_GPL (crypto_shash_finup)
 
int crypto_shash_digest (struct shash_desc *desc, const u8 *data, unsigned int len, u8 *out)
 
 EXPORT_SYMBOL_GPL (crypto_shash_digest)
 
int shash_ahash_update (struct ahash_request *req, struct shash_desc *desc)
 
 EXPORT_SYMBOL_GPL (shash_ahash_update)
 
int shash_ahash_finup (struct ahash_request *req, struct shash_desc *desc)
 
 EXPORT_SYMBOL_GPL (shash_ahash_finup)
 
int shash_ahash_digest (struct ahash_request *req, struct shash_desc *desc)
 
 EXPORT_SYMBOL_GPL (shash_ahash_digest)
 
int crypto_init_shash_ops_async (struct crypto_tfm *tfm)
 
struct crypto_shashcrypto_alloc_shash (const char *alg_name, u32 type, u32 mask)
 
 EXPORT_SYMBOL_GPL (crypto_alloc_shash)
 
int crypto_register_shash (struct shash_alg *alg)
 
 EXPORT_SYMBOL_GPL (crypto_register_shash)
 
int crypto_unregister_shash (struct shash_alg *alg)
 
 EXPORT_SYMBOL_GPL (crypto_unregister_shash)
 
int crypto_register_shashes (struct shash_alg *algs, int count)
 
 EXPORT_SYMBOL_GPL (crypto_register_shashes)
 
int crypto_unregister_shashes (struct shash_alg *algs, int count)
 
 EXPORT_SYMBOL_GPL (crypto_unregister_shashes)
 
int shash_register_instance (struct crypto_template *tmpl, struct shash_instance *inst)
 
 EXPORT_SYMBOL_GPL (shash_register_instance)
 
void shash_free_instance (struct crypto_instance *inst)
 
 EXPORT_SYMBOL_GPL (shash_free_instance)
 
int crypto_init_shash_spawn (struct crypto_shash_spawn *spawn, struct shash_alg *alg, struct crypto_instance *inst)
 
 EXPORT_SYMBOL_GPL (crypto_init_shash_spawn)
 
struct shash_algshash_attr_alg (struct rtattr *rta, u32 type, u32 mask)
 
 EXPORT_SYMBOL_GPL (shash_attr_alg)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Synchronous cryptographic hash type")
 

Function Documentation

struct crypto_shash* crypto_alloc_shash ( const char alg_name,
u32  type,
u32  mask 
)
read

Definition at line 578 of file shash.c.

int crypto_init_shash_ops_async ( struct crypto_tfm tfm)

Definition at line 331 of file shash.c.

int crypto_init_shash_spawn ( struct crypto_shash_spawn spawn,
struct shash_alg alg,
struct crypto_instance inst 
)

Definition at line 688 of file shash.c.

int crypto_register_shash ( struct shash_alg alg)

Definition at line 613 of file shash.c.

int crypto_register_shashes ( struct shash_alg algs,
int  count 
)

Definition at line 632 of file shash.c.

int crypto_shash_digest ( struct shash_desc desc,
const u8 data,
unsigned int  len,
u8 out 
)

Definition at line 174 of file shash.c.

int crypto_shash_final ( struct shash_desc desc,
u8 out 
)

Definition at line 133 of file shash.c.

int crypto_shash_finup ( struct shash_desc desc,
const u8 data,
unsigned int  len,
u8 out 
)

Definition at line 153 of file shash.c.

int crypto_shash_setkey ( struct crypto_shash tfm,
const u8 key,
unsigned int  keylen 
)

Definition at line 54 of file shash.c.

int crypto_shash_update ( struct shash_desc desc,
const u8 data,
unsigned int  len 
)

Definition at line 97 of file shash.c.

int crypto_unregister_shash ( struct shash_alg alg)

Definition at line 626 of file shash.c.

int crypto_unregister_shashes ( struct shash_alg algs,
int  count 
)

Definition at line 652 of file shash.c.

EXPORT_SYMBOL_GPL ( crypto_shash_setkey  )
EXPORT_SYMBOL_GPL ( crypto_shash_update  )
EXPORT_SYMBOL_GPL ( crypto_shash_final  )
EXPORT_SYMBOL_GPL ( crypto_shash_finup  )
EXPORT_SYMBOL_GPL ( crypto_shash_digest  )
EXPORT_SYMBOL_GPL ( shash_ahash_update  )
EXPORT_SYMBOL_GPL ( shash_ahash_finup  )
EXPORT_SYMBOL_GPL ( shash_ahash_digest  )
EXPORT_SYMBOL_GPL ( crypto_alloc_shash  )
EXPORT_SYMBOL_GPL ( crypto_register_shash  )
EXPORT_SYMBOL_GPL ( crypto_unregister_shash  )
EXPORT_SYMBOL_GPL ( crypto_register_shashes  )
EXPORT_SYMBOL_GPL ( crypto_unregister_shashes  )
EXPORT_SYMBOL_GPL ( shash_register_instance  )
EXPORT_SYMBOL_GPL ( shash_free_instance  )
EXPORT_SYMBOL_GPL ( crypto_init_shash_spawn  )
EXPORT_SYMBOL_GPL ( shash_attr_alg  )
MODULE_DESCRIPTION ( "Synchronous cryptographic hash type )
MODULE_LICENSE ( "GPL"  )
int shash_ahash_digest ( struct ahash_request req,
struct shash_desc desc 
)

Definition at line 274 of file shash.c.

int shash_ahash_finup ( struct ahash_request req,
struct shash_desc desc 
)

Definition at line 242 of file shash.c.

int shash_ahash_update ( struct ahash_request req,
struct shash_desc desc 
)

Definition at line 219 of file shash.c.

struct shash_alg* shash_attr_alg ( struct rtattr rta,
u32  type,
u32  mask 
)
read

Definition at line 697 of file shash.c.

void shash_free_instance ( struct crypto_instance inst)

Definition at line 681 of file shash.c.

int shash_register_instance ( struct crypto_template tmpl,
struct shash_instance inst 
)

Definition at line 668 of file shash.c.