27 #include <linux/kernel.h>
30 #include <linux/module.h>
44 crypto_ablkcipher_set_flags(child, crypto_ablkcipher_get_flags(tfm)
46 err = crypto_ablkcipher_setkey(child, key, key_len);
47 crypto_ablkcipher_set_flags(tfm, crypto_ablkcipher_get_flags(child)
63 return crypto_blkcipher_crt(desc.
tfm)->encrypt(
75 ablkcipher_request_ctx(req);
77 memcpy(cryptd_req, req,
sizeof(*req));
78 ablkcipher_request_set_tfm(cryptd_req, &ctx->
cryptd_tfm->base);
80 return crypto_ablkcipher_encrypt(cryptd_req);
94 ablkcipher_request_ctx(req);
96 memcpy(cryptd_req, req,
sizeof(*req));
97 ablkcipher_request_set_tfm(cryptd_req, &ctx->
cryptd_tfm->base);
99 return crypto_ablkcipher_decrypt(cryptd_req);
107 return crypto_blkcipher_crt(desc.
tfm)->decrypt(
127 if (IS_ERR(cryptd_tfm))
128 return PTR_ERR(cryptd_tfm);
132 crypto_ablkcipher_reqsize(&cryptd_tfm->
base);
142 snprintf(drv_name,
sizeof(drv_name),
"__driver-%s",
143 crypto_tfm_alg_driver_name(tfm));