Lines Matching refs:tfm
54 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey() argument
57 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); in ghash_setkey()
61 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ghash_setkey()
82 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update()
135 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_final()
164 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local
165 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_init()
171 desc->tfm = child; in ghash_async_init()
178 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local
179 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update()
196 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local
197 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_final()
236 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest() local
237 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_digest()
250 desc->tfm = child; in ghash_async_digest()
255 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey() argument
258 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_setkey()
263 crypto_ahash_set_flags(child, crypto_ahash_get_flags(tfm) in ghash_async_setkey()
266 crypto_ahash_set_flags(tfm, crypto_ahash_get_flags(child) in ghash_async_setkey()
272 static int ghash_async_init_tfm(struct crypto_tfm *tfm) in ghash_async_init_tfm() argument
275 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_init_tfm()
283 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in ghash_async_init_tfm()
290 static void ghash_async_exit_tfm(struct crypto_tfm *tfm) in ghash_async_exit_tfm() argument
292 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_exit_tfm()