Lines Matching refs:tfm
63 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update()
95 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_final()
109 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey() argument
112 struct ghash_key *key = crypto_shash_ctx(tfm); in ghash_setkey()
116 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ghash_setkey()
153 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local
154 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_init()
166 desc->tfm = child; in ghash_async_init()
177 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local
178 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update()
195 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local
196 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_final()
210 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest() local
211 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_digest()
223 desc->tfm = child; in ghash_async_digest()
229 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey() argument
232 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_setkey()
237 crypto_ahash_set_flags(child, crypto_ahash_get_flags(tfm) in ghash_async_setkey()
240 crypto_ahash_set_flags(tfm, crypto_ahash_get_flags(child) in ghash_async_setkey()
246 static int ghash_async_init_tfm(struct crypto_tfm *tfm) in ghash_async_init_tfm() argument
249 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_init_tfm()
257 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in ghash_async_init_tfm()
264 static void ghash_async_exit_tfm(struct crypto_tfm *tfm) in ghash_async_exit_tfm() argument
266 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_exit_tfm()