Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
ahash.c File Reference
#include <crypto/internal/hash.h>
#include <crypto/scatterwalk.h>
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/sched.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.

Data Structures

struct  ahash_request_priv
 

Functions

int crypto_hash_walk_done (struct crypto_hash_walk *walk, int err)
 
 EXPORT_SYMBOL_GPL (crypto_hash_walk_done)
 
int crypto_hash_walk_first (struct ahash_request *req, struct crypto_hash_walk *walk)
 
 EXPORT_SYMBOL_GPL (crypto_hash_walk_first)
 
int crypto_hash_walk_first_compat (struct hash_desc *hdesc, struct crypto_hash_walk *walk, struct scatterlist *sg, unsigned int len)
 
int crypto_ahash_setkey (struct crypto_ahash *tfm, const u8 *key, unsigned int keylen)
 
 EXPORT_SYMBOL_GPL (crypto_ahash_setkey)
 
int crypto_ahash_final (struct ahash_request *req)
 
 EXPORT_SYMBOL_GPL (crypto_ahash_final)
 
int crypto_ahash_finup (struct ahash_request *req)
 
 EXPORT_SYMBOL_GPL (crypto_ahash_finup)
 
int crypto_ahash_digest (struct ahash_request *req)
 
 EXPORT_SYMBOL_GPL (crypto_ahash_digest)
 
 EXPORT_SYMBOL_GPL (crypto_ahash_type)
 
struct crypto_ahashcrypto_alloc_ahash (const char *alg_name, u32 type, u32 mask)
 
 EXPORT_SYMBOL_GPL (crypto_alloc_ahash)
 
int crypto_register_ahash (struct ahash_alg *alg)
 
 EXPORT_SYMBOL_GPL (crypto_register_ahash)
 
int crypto_unregister_ahash (struct ahash_alg *alg)
 
 EXPORT_SYMBOL_GPL (crypto_unregister_ahash)
 
int ahash_register_instance (struct crypto_template *tmpl, struct ahash_instance *inst)
 
 EXPORT_SYMBOL_GPL (ahash_register_instance)
 
void ahash_free_instance (struct crypto_instance *inst)
 
 EXPORT_SYMBOL_GPL (ahash_free_instance)
 
int crypto_init_ahash_spawn (struct crypto_ahash_spawn *spawn, struct hash_alg_common *alg, struct crypto_instance *inst)
 
 EXPORT_SYMBOL_GPL (crypto_init_ahash_spawn)
 
struct hash_alg_commonahash_attr_alg (struct rtattr *rta, u32 type, u32 mask)
 
 EXPORT_SYMBOL_GPL (ahash_attr_alg)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Asynchronous cryptographic hash type")
 

Variables

struct crypto_type crypto_ahash_type
 

Function Documentation

struct hash_alg_common* ahash_attr_alg ( struct rtattr rta,
u32  type,
u32  mask 
)
read

Definition at line 523 of file ahash.c.

void ahash_free_instance ( struct crypto_instance inst)

Definition at line 507 of file ahash.c.

int ahash_register_instance ( struct crypto_template tmpl,
struct ahash_instance inst 
)

Definition at line 494 of file ahash.c.

int crypto_ahash_digest ( struct ahash_request req)

Definition at line 273 of file ahash.c.

int crypto_ahash_final ( struct ahash_request req)

Definition at line 261 of file ahash.c.

int crypto_ahash_finup ( struct ahash_request req)

Definition at line 267 of file ahash.c.

int crypto_ahash_setkey ( struct crypto_ahash tfm,
const u8 key,
unsigned int  keylen 
)

Definition at line 169 of file ahash.c.

struct crypto_ahash* crypto_alloc_ahash ( const char alg_name,
u32  type,
u32  mask 
)
read

Definition at line 453 of file ahash.c.

int crypto_hash_walk_done ( struct crypto_hash_walk walk,
int  err 
)

Definition at line 78 of file ahash.c.

int crypto_hash_walk_first ( struct ahash_request req,
struct crypto_hash_walk walk 
)

Definition at line 117 of file ahash.c.

int crypto_hash_walk_first_compat ( struct hash_desc hdesc,
struct crypto_hash_walk walk,
struct scatterlist sg,
unsigned int  len 
)

Definition at line 133 of file ahash.c.

int crypto_init_ahash_spawn ( struct crypto_ahash_spawn spawn,
struct hash_alg_common alg,
struct crypto_instance inst 
)

Definition at line 514 of file ahash.c.

int crypto_register_ahash ( struct ahash_alg alg)

Definition at line 475 of file ahash.c.

int crypto_unregister_ahash ( struct ahash_alg alg)

Definition at line 488 of file ahash.c.

EXPORT_SYMBOL_GPL ( crypto_hash_walk_done  )
EXPORT_SYMBOL_GPL ( crypto_hash_walk_first  )
EXPORT_SYMBOL_GPL ( crypto_ahash_setkey  )
EXPORT_SYMBOL_GPL ( crypto_ahash_final  )
EXPORT_SYMBOL_GPL ( crypto_ahash_finup  )
EXPORT_SYMBOL_GPL ( crypto_ahash_digest  )
EXPORT_SYMBOL_GPL ( crypto_ahash_type  )
EXPORT_SYMBOL_GPL ( crypto_alloc_ahash  )
EXPORT_SYMBOL_GPL ( crypto_register_ahash  )
EXPORT_SYMBOL_GPL ( crypto_unregister_ahash  )
EXPORT_SYMBOL_GPL ( ahash_register_instance  )
EXPORT_SYMBOL_GPL ( ahash_free_instance  )
EXPORT_SYMBOL_GPL ( crypto_init_ahash_spawn  )
EXPORT_SYMBOL_GPL ( ahash_attr_alg  )
MODULE_DESCRIPTION ( "Asynchronous cryptographic hash type )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct crypto_type crypto_ahash_type
Initial value:
= {
.extsize = crypto_ahash_extsize,
.init_tfm = crypto_ahash_init_tfm,
.report = crypto_ahash_report,
.maskclear = ~CRYPTO_ALG_TYPE_MASK,
.tfmsize = offsetof(struct crypto_ahash, base),
}

Definition at line 439 of file ahash.c.