Lines Matching refs:cryptd_tfm
47 struct cryptd_skcipher *cryptd_tfm; member
54 struct crypto_skcipher *child = &ctx->cryptd_tfm->base; in simd_skcipher_setkey()
73 (in_atomic() && cryptd_skcipher_queued(ctx->cryptd_tfm))) in simd_skcipher_encrypt()
74 child = &ctx->cryptd_tfm->base; in simd_skcipher_encrypt()
76 child = cryptd_skcipher_child(ctx->cryptd_tfm); in simd_skcipher_encrypt()
94 (in_atomic() && cryptd_skcipher_queued(ctx->cryptd_tfm))) in simd_skcipher_decrypt()
95 child = &ctx->cryptd_tfm->base; in simd_skcipher_decrypt()
97 child = cryptd_skcipher_child(ctx->cryptd_tfm); in simd_skcipher_decrypt()
108 cryptd_free_skcipher(ctx->cryptd_tfm); in simd_skcipher_exit()
114 struct cryptd_skcipher *cryptd_tfm; in simd_skcipher_init() local
122 cryptd_tfm = cryptd_alloc_skcipher(salg->ialg_name, in simd_skcipher_init()
125 if (IS_ERR(cryptd_tfm)) in simd_skcipher_init()
126 return PTR_ERR(cryptd_tfm); in simd_skcipher_init()
128 ctx->cryptd_tfm = cryptd_tfm; in simd_skcipher_init()
130 reqsize = crypto_skcipher_reqsize(cryptd_skcipher_child(cryptd_tfm)); in simd_skcipher_init()
131 reqsize = max(reqsize, crypto_skcipher_reqsize(&cryptd_tfm->base)); in simd_skcipher_init()
265 struct cryptd_aead *cryptd_tfm; member
272 struct crypto_aead *child = &ctx->cryptd_tfm->base; in simd_aead_setkey()
283 struct crypto_aead *child = &ctx->cryptd_tfm->base; in simd_aead_setauthsize()
299 (in_atomic() && cryptd_aead_queued(ctx->cryptd_tfm))) in simd_aead_encrypt()
300 child = &ctx->cryptd_tfm->base; in simd_aead_encrypt()
302 child = cryptd_aead_child(ctx->cryptd_tfm); in simd_aead_encrypt()
320 (in_atomic() && cryptd_aead_queued(ctx->cryptd_tfm))) in simd_aead_decrypt()
321 child = &ctx->cryptd_tfm->base; in simd_aead_decrypt()
323 child = cryptd_aead_child(ctx->cryptd_tfm); in simd_aead_decrypt()
334 cryptd_free_aead(ctx->cryptd_tfm); in simd_aead_exit()
340 struct cryptd_aead *cryptd_tfm; in simd_aead_init() local
348 cryptd_tfm = cryptd_alloc_aead(salg->ialg_name, CRYPTO_ALG_INTERNAL, in simd_aead_init()
350 if (IS_ERR(cryptd_tfm)) in simd_aead_init()
351 return PTR_ERR(cryptd_tfm); in simd_aead_init()
353 ctx->cryptd_tfm = cryptd_tfm; in simd_aead_init()
355 reqsize = crypto_aead_reqsize(cryptd_aead_child(cryptd_tfm)); in simd_aead_init()
356 reqsize = max(reqsize, crypto_aead_reqsize(&cryptd_tfm->base)); in simd_aead_init()