Lines Matching refs:tfm
120 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update()
150 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_final()
173 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey() argument
176 struct ghash_key *key = crypto_shash_ctx(tfm); in ghash_setkey()
218 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local
219 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_init()
225 desc->tfm = child; in ghash_async_init()
232 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local
233 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update()
250 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local
251 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_final()
267 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest() local
268 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_digest()
281 desc->tfm = child; in ghash_async_digest()
289 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_import() local
290 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_import()
293 desc->tfm = cryptd_ahash_child(ctx->cryptd_tfm); in ghash_async_import()
306 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey() argument
309 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_setkey()
313 crypto_ahash_set_flags(child, crypto_ahash_get_flags(tfm) in ghash_async_setkey()
318 static int ghash_async_init_tfm(struct crypto_tfm *tfm) in ghash_async_init_tfm() argument
321 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_init_tfm()
327 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in ghash_async_init_tfm()
334 static void ghash_async_exit_tfm(struct crypto_tfm *tfm) in ghash_async_exit_tfm() argument
336 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_exit_tfm()
382 static int gcm_aes_setkey(struct crypto_aead *tfm, const u8 *inkey, in gcm_aes_setkey() argument
385 struct gcm_key *ctx = crypto_aead_ctx(tfm); in gcm_aes_setkey()
416 static int gcm_aes_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in gcm_aes_setauthsize() argument
673 static int rfc4106_setkey(struct crypto_aead *tfm, const u8 *inkey, in rfc4106_setkey() argument
676 struct gcm_key *ctx = crypto_aead_ctx(tfm); in rfc4106_setkey()
680 err = gcm_aes_setkey(tfm, inkey, keylen); in rfc4106_setkey()
688 static int rfc4106_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in rfc4106_setauthsize() argument