Home
last modified time | relevance | path

Searched refs:shash (Results 1 – 3 of 3) sorted by relevance

/lib/
Dlibcrc32c.c40 SHASH_DESC_ON_STACK(shash, tfm); in crc32c()
41 u32 ret, *ctx = (u32 *)shash_desc_ctx(shash); in crc32c()
44 shash->tfm = tfm; in crc32c()
47 err = crypto_shash_update(shash, address, length); in crc32c()
Ddigsig.c28 static struct crypto_shash *shash; variable
234 desc = kzalloc(sizeof(*desc) + crypto_shash_descsize(shash), in digsig_verify()
239 desc->tfm = shash; in digsig_verify()
261 shash = crypto_alloc_shash("sha1", 0, 0); in digsig_init()
262 if (IS_ERR(shash)) { in digsig_init()
264 return PTR_ERR(shash); in digsig_init()
273 crypto_free_shash(shash); in digsig_cleanup()
Dcrc-t10dif.c60 struct shash_desc shash; in crc_t10dif_update() member
69 desc.shash.tfm = rcu_dereference(crct10dif_tfm); in crc_t10dif_update()
72 err = crypto_shash_update(&desc.shash, buffer, len); in crc_t10dif_update()