VSF Documented
Data Structures | Macros | Functions
hash.h File Reference
#include <linux/crypto.h>
#include <linux/scatterlist.h>
#include <linux/slab.h>
#include <linux/string.h>

Go to the source code of this file.

Data Structures

struct  hash_alg_common
 
struct  shash_desc
 
struct  shash_alg
 
struct  crypto_shash
 

Macros

#define SHASH_DESC_ON_STACK(shash, ctx)
 

Functions

int crypto_shash_init (struct shash_desc *desc)
 
int crypto_shash_setkey (struct crypto_shash *tfm, const u8 *key, unsigned int keylen)
 
int crypto_shash_export (struct shash_desc *desc, void *out)
 
int crypto_shash_import (struct shash_desc *desc, const void *in)
 
int crypto_shash_finup (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)
 

Macro Definition Documentation

◆ SHASH_DESC_ON_STACK

#define SHASH_DESC_ON_STACK (   shash,
  ctx 
)
Value:
char __##shash##_desc[sizeof(struct shash_desc) + sizeof(psa_hash_operation_t)]\
VSF_CAL_ALIGN(__alignof__(struct shash_desc));\
struct shash_desc *shash = (struct shash_desc *)__##shash##_desc
#define VSF_CAL_ALIGN(__N)
Definition __compiler.h:184
Definition hash.h:16

Function Documentation

◆ crypto_shash_init()

int crypto_shash_init ( struct shash_desc desc)

◆ crypto_shash_setkey()

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

◆ crypto_shash_export()

int crypto_shash_export ( struct shash_desc desc,
void *  out 
)

◆ crypto_shash_import()

int crypto_shash_import ( struct shash_desc desc,
const void *  in 
)

◆ crypto_shash_finup()

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

◆ crypto_shash_update()

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

◆ crypto_shash_final()

int crypto_shash_final ( struct shash_desc desc,
u8 out 
)
Generated from commit: vsfteam/vsf@f33b89f