Lines Matching refs:tfm
37 int ablk_set_key(struct crypto_ablkcipher *tfm, const u8 *key, in ablk_set_key() argument
40 struct async_helper_ctx *ctx = crypto_ablkcipher_ctx(tfm); in ablk_set_key()
45 crypto_ablkcipher_set_flags(child, crypto_ablkcipher_get_flags(tfm) in ablk_set_key()
48 crypto_ablkcipher_set_flags(tfm, crypto_ablkcipher_get_flags(child) in ablk_set_key()
56 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in __ablk_encrypt() local
57 struct async_helper_ctx *ctx = crypto_ablkcipher_ctx(tfm); in __ablk_encrypt()
60 desc.tfm = cryptd_ablkcipher_child(ctx->cryptd_tfm); in __ablk_encrypt()
64 return crypto_blkcipher_crt(desc.tfm)->encrypt( in __ablk_encrypt()
71 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in ablk_encrypt() local
72 struct async_helper_ctx *ctx = crypto_ablkcipher_ctx(tfm); in ablk_encrypt()
90 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in ablk_decrypt() local
91 struct async_helper_ctx *ctx = crypto_ablkcipher_ctx(tfm); in ablk_decrypt()
104 desc.tfm = cryptd_ablkcipher_child(ctx->cryptd_tfm); in ablk_decrypt()
108 return crypto_blkcipher_crt(desc.tfm)->decrypt( in ablk_decrypt()
114 void ablk_exit(struct crypto_tfm *tfm) in ablk_exit() argument
116 struct async_helper_ctx *ctx = crypto_tfm_ctx(tfm); in ablk_exit()
122 int ablk_init_common(struct crypto_tfm *tfm, const char *drv_name) in ablk_init_common() argument
124 struct async_helper_ctx *ctx = crypto_tfm_ctx(tfm); in ablk_init_common()
133 tfm->crt_ablkcipher.reqsize = sizeof(struct ablkcipher_request) + in ablk_init_common()
140 int ablk_init(struct crypto_tfm *tfm) in ablk_init() argument
145 crypto_tfm_alg_driver_name(tfm)); in ablk_init()
147 return ablk_init_common(tfm, drv_name); in ablk_init()