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()
80 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update()
133 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_final()
162 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local
163 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_init()
169 desc->tfm = child; in ghash_async_init()
176 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local
177 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update()
194 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local
195 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_final()
234 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest() local
235 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_digest()
248 desc->tfm = child; in ghash_async_digest()
253 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey() argument
256 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_setkey()
260 crypto_ahash_set_flags(child, crypto_ahash_get_flags(tfm) in ghash_async_setkey()
265 static int ghash_async_init_tfm(struct crypto_tfm *tfm) in ghash_async_init_tfm() argument
268 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_init_tfm()
276 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in ghash_async_init_tfm()
283 static void ghash_async_exit_tfm(struct crypto_tfm *tfm) in ghash_async_exit_tfm() argument
285 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_exit_tfm()