Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
hash.h File Reference
#include <linux/crypto.h>

Go to the source code of this file.

Data Structures

struct  hash_alg_common
 
struct  ahash_request
 
struct  ahash_alg
 
struct  shash_desc
 
struct  shash_alg
 
struct  crypto_ahash
 
struct  crypto_shash
 

Functions

struct crypto_ahashcrypto_alloc_ahash (const char *alg_name, u32 type, u32 mask)
 
int crypto_ahash_setkey (struct crypto_ahash *tfm, const u8 *key, unsigned int keylen)
 
int crypto_ahash_finup (struct ahash_request *req)
 
int crypto_ahash_final (struct ahash_request *req)
 
int crypto_ahash_digest (struct ahash_request *req)
 
struct crypto_shashcrypto_alloc_shash (const char *alg_name, u32 type, u32 mask)
 
int crypto_shash_setkey (struct crypto_shash *tfm, const u8 *key, unsigned int keylen)
 
int crypto_shash_digest (struct shash_desc *desc, const u8 *data, unsigned int len, u8 *out)
 
int crypto_shash_update (struct shash_desc *desc, const u8 *data, unsigned int len)
 
int crypto_shash_final (struct shash_desc *desc, u8 *out)
 
int crypto_shash_finup (struct shash_desc *desc, const u8 *data, unsigned int len, u8 *out)
 

Function Documentation

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.

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_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.