Lines Matching refs:tfm

55 static int ghash_setkey(struct crypto_shash *tfm,  in ghash_setkey()  argument
58 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); in ghash_setkey()
63 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ghash_setkey()
84 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update()
137 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_final()
167 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local
168 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_init()
180 desc->tfm = child; in ghash_async_init()
191 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local
192 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update()
209 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local
210 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_final()
224 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest() local
225 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_digest()
237 desc->tfm = child; in ghash_async_digest()
243 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey() argument
246 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_setkey()
251 crypto_ahash_set_flags(child, crypto_ahash_get_flags(tfm) in ghash_async_setkey()
254 crypto_ahash_set_flags(tfm, crypto_ahash_get_flags(child) in ghash_async_setkey()
260 static int ghash_async_init_tfm(struct crypto_tfm *tfm) in ghash_async_init_tfm() argument
263 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_init_tfm()
271 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in ghash_async_init_tfm()
278 static void ghash_async_exit_tfm(struct crypto_tfm *tfm) in ghash_async_exit_tfm() argument
280 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_exit_tfm()