Searched refs:shash_tfm (Results 1 – 2 of 2) sorted by relevance
57 struct crypto_shash *shash_tfm = __crypto_shash_cast(tfm); in p8_ghash_init_tfm() local73 if (shash_tfm->descsize < sizeof(struct p8_ghash_desc_ctx) in p8_ghash_init_tfm()78 shash_tfm->descsize - sizeof(struct p8_ghash_desc_ctx), in p8_ghash_init_tfm()
46 struct crypto_shash *shash_tfm; member173 ctx_p->shash_tfm = crypto_alloc_shash("sha256-generic", 0, 0); in cc_cipher_init()174 if (IS_ERR(ctx_p->shash_tfm)) { in cc_cipher_init()176 return PTR_ERR(ctx_p->shash_tfm); in cc_cipher_init()198 crypto_free_shash(ctx_p->shash_tfm); in cc_cipher_exit()199 ctx_p->shash_tfm = NULL; in cc_cipher_exit()366 SHASH_DESC_ON_STACK(desc, ctx_p->shash_tfm); in cc_cipher_setkey()368 desc->tfm = ctx_p->shash_tfm; in cc_cipher_setkey()