Lines Matching refs:crypt_config

80 	struct crypt_config *cc;
105 struct crypt_config;
108 int (*ctr)(struct crypt_config *cc, struct dm_target *ti,
110 void (*dtr)(struct crypt_config *cc);
111 int (*init)(struct crypt_config *cc);
112 int (*wipe)(struct crypt_config *cc);
113 int (*generator)(struct crypt_config *cc, u8 *iv,
115 int (*post)(struct crypt_config *cc, u8 *iv,
158 struct crypt_config { struct
260 struct crypt_config *cc = ti->private; in get_max_request_sectors()
287 static struct scatterlist *crypt_get_sg_data(struct crypt_config *cc,
290 static bool crypt_integrity_aead(struct crypt_config *cc);
295 static struct crypto_skcipher *any_tfm(struct crypt_config *cc) in any_tfm()
300 static struct crypto_aead *any_tfm_aead(struct crypt_config *cc) in any_tfm_aead()
361 static int crypt_iv_plain_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_plain_gen()
370 static int crypt_iv_plain64_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_plain64_gen()
379 static int crypt_iv_plain64be_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_plain64be_gen()
389 static int crypt_iv_essiv_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_essiv_gen()
402 static int crypt_iv_benbi_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_benbi_ctr()
433 static void crypt_iv_benbi_dtr(struct crypt_config *cc) in crypt_iv_benbi_dtr()
437 static int crypt_iv_benbi_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_benbi_gen()
450 static int crypt_iv_null_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_null_gen()
458 static void crypt_iv_lmk_dtr(struct crypt_config *cc) in crypt_iv_lmk_dtr()
466 static int crypt_iv_lmk_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_lmk_ctr()
497 static int crypt_iv_lmk_init(struct crypt_config *cc) in crypt_iv_lmk_init()
510 static int crypt_iv_lmk_wipe(struct crypt_config *cc) in crypt_iv_lmk_wipe()
520 static void crypt_iv_lmk_one(struct crypt_config *cc, u8 *iv, in crypt_iv_lmk_one()
547 static int crypt_iv_lmk_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_lmk_gen()
563 static int crypt_iv_lmk_post(struct crypt_config *cc, u8 *iv, in crypt_iv_lmk_post()
583 static void crypt_iv_tcw_dtr(struct crypt_config *cc) in crypt_iv_tcw_dtr()
593 static int crypt_iv_tcw_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_tcw_ctr()
619 static int crypt_iv_tcw_init(struct crypt_config *cc) in crypt_iv_tcw_init()
631 static int crypt_iv_tcw_wipe(struct crypt_config *cc) in crypt_iv_tcw_wipe()
641 static void crypt_iv_tcw_whitening(struct crypt_config *cc, in crypt_iv_tcw_whitening()
665 static int crypt_iv_tcw_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_tcw_gen()
690 static int crypt_iv_tcw_post(struct crypt_config *cc, u8 *iv, in crypt_iv_tcw_post()
708 static int crypt_iv_random_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_random_gen()
716 static int crypt_iv_eboiv_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_eboiv_ctr()
732 static int crypt_iv_eboiv_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_eboiv_gen()
766 static void crypt_iv_elephant_dtr(struct crypt_config *cc) in crypt_iv_elephant_dtr()
774 static int crypt_iv_elephant_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_elephant_ctr()
938 static int crypt_iv_elephant(struct crypt_config *cc, struct dm_crypt_request *dmreq) in crypt_iv_elephant()
1011 static int crypt_iv_elephant_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_elephant_gen()
1025 static int crypt_iv_elephant_post(struct crypt_config *cc, u8 *iv, in crypt_iv_elephant_post()
1034 static int crypt_iv_elephant_init(struct crypt_config *cc) in crypt_iv_elephant_init()
1042 static int crypt_iv_elephant_wipe(struct crypt_config *cc) in crypt_iv_elephant_wipe()
1116 static bool crypt_integrity_aead(struct crypt_config *cc) in crypt_integrity_aead()
1121 static bool crypt_integrity_hmac(struct crypt_config *cc) in crypt_integrity_hmac()
1127 static struct scatterlist *crypt_get_sg_data(struct crypt_config *cc, in crypt_get_sg_data()
1161 static int crypt_integrity_ctr(struct crypt_config *cc, struct dm_target *ti) in crypt_integrity_ctr()
1208 static void crypt_convert_init(struct crypt_config *cc, in crypt_convert_init()
1224 static struct dm_crypt_request *dmreq_of_req(struct crypt_config *cc, in dmreq_of_req()
1230 static void *req_of_dmreq(struct crypt_config *cc, struct dm_crypt_request *dmreq) in req_of_dmreq()
1235 static u8 *iv_of_dmreq(struct crypt_config *cc, in iv_of_dmreq()
1246 static u8 *org_iv_of_dmreq(struct crypt_config *cc, in org_iv_of_dmreq()
1252 static __le64 *org_sector_of_dmreq(struct crypt_config *cc, in org_sector_of_dmreq()
1260 static unsigned int *org_tag_of_dmreq(struct crypt_config *cc, in org_tag_of_dmreq()
1269 static void *tag_from_dmreq(struct crypt_config *cc, in tag_from_dmreq()
1279 static void *iv_tag_from_dmreq(struct crypt_config *cc, in iv_tag_from_dmreq()
1285 static int crypt_convert_block_aead(struct crypt_config *cc, in crypt_convert_block_aead()
1387 static int crypt_convert_block_skcipher(struct crypt_config *cc, in crypt_convert_block_skcipher()
1466 static int crypt_alloc_req_skcipher(struct crypt_config *cc, in crypt_alloc_req_skcipher()
1490 static int crypt_alloc_req_aead(struct crypt_config *cc, in crypt_alloc_req_aead()
1512 static int crypt_alloc_req(struct crypt_config *cc, in crypt_alloc_req()
1521 static void crypt_free_req_skcipher(struct crypt_config *cc, in crypt_free_req_skcipher()
1530 static void crypt_free_req_aead(struct crypt_config *cc, in crypt_free_req_aead()
1539 static void crypt_free_req(struct crypt_config *cc, void *req, struct bio *base_bio) in crypt_free_req()
1550 static blk_status_t crypt_convert(struct crypt_config *cc, in crypt_convert()
1643 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone);
1667 struct crypt_config *cc = io->cc; in crypt_alloc_buffer()
1736 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone) in crypt_free_buffer_pages()
1753 static void crypt_io_init(struct dm_crypt_io *io, struct crypt_config *cc, in crypt_io_init()
1781 struct crypt_config *cc = io->cc; in crypt_dec_pending()
1830 struct crypt_config *cc = io->cc; in crypt_endio()
1862 struct crypt_config *cc = io->cc; in kcryptd_io_read()
1918 struct crypt_config *cc = io->cc; in kcryptd_queue_read()
1935 struct crypt_config *cc = data; in dmcrypt_write()
1988 struct crypt_config *cc = io->cc; in kcryptd_crypt_write_io_submit()
2027 static bool kcryptd_crypt_write_inline(struct crypt_config *cc, in kcryptd_crypt_write_inline()
2051 struct crypt_config *cc = io->cc; in kcryptd_crypt_write_continue()
2078 struct crypt_config *cc = io->cc; in kcryptd_crypt_write_convert()
2151 struct crypt_config *cc = io->cc; in kcryptd_crypt_read_continue()
2169 struct crypt_config *cc = io->cc; in kcryptd_crypt_read_convert()
2207 struct crypt_config *cc = io->cc; in kcryptd_async_done()
2270 struct crypt_config *cc = io->cc; in kcryptd_queue_crypt()
2293 static void crypt_free_tfms_aead(struct crypt_config *cc) in crypt_free_tfms_aead()
2307 static void crypt_free_tfms_skcipher(struct crypt_config *cc) in crypt_free_tfms_skcipher()
2324 static void crypt_free_tfms(struct crypt_config *cc) in crypt_free_tfms()
2332 static int crypt_alloc_tfms_skcipher(struct crypt_config *cc, char *ciphermode) in crypt_alloc_tfms_skcipher()
2362 static int crypt_alloc_tfms_aead(struct crypt_config *cc, char *ciphermode) in crypt_alloc_tfms_aead()
2383 static int crypt_alloc_tfms(struct crypt_config *cc, char *ciphermode) in crypt_alloc_tfms()
2391 static unsigned int crypt_subkey_size(struct crypt_config *cc) in crypt_subkey_size()
2396 static unsigned int crypt_authenckey_size(struct crypt_config *cc) in crypt_authenckey_size()
2423 static int crypt_setkey(struct crypt_config *cc) in crypt_setkey()
2472 static int set_key_user(struct crypt_config *cc, struct key *key) in set_key_user()
2488 static int set_key_encrypted(struct crypt_config *cc, struct key *key) in set_key_encrypted()
2504 static int set_key_trusted(struct crypt_config *cc, struct key *key) in set_key_trusted()
2520 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string) in crypt_set_keyring_key()
2526 int (*set_key)(struct crypt_config *cc, struct key *key); in crypt_set_keyring_key()
2619 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string) in crypt_set_keyring_key()
2631 static int crypt_set_key(struct crypt_config *cc, char *key) in crypt_set_key()
2668 static int crypt_wipe_key(struct crypt_config *cc) in crypt_wipe_key()
2705 struct crypt_config *cc = pool_data; in crypt_page_alloc()
2726 struct crypt_config *cc = pool_data; in crypt_page_free()
2734 struct crypt_config *cc = ti->private; in crypt_dtr()
2790 struct crypt_config *cc = ti->private; in crypt_ctr_ivmode()
2863 static int crypt_ctr_auth_cipher(struct crypt_config *cc, char *cipher_api) in crypt_ctr_auth_cipher()
2900 struct crypt_config *cc = ti->private; in crypt_ctr_cipher_new()
2973 struct crypt_config *cc = ti->private; in crypt_ctr_cipher_old()
3057 struct crypt_config *cc = ti->private; in crypt_ctr_cipher()
3113 struct crypt_config *cc = ti->private; in crypt_ctr_optional()
3203 struct crypt_config *cc = ti->private; in crypt_report_zones()
3219 struct crypt_config *cc; in crypt_ctr()
3458 struct crypt_config *cc = ti->private; in crypt_map()
3544 struct crypt_config *cc = ti->private; in crypt_status()
3639 struct crypt_config *cc = ti->private; in crypt_postsuspend()
3646 struct crypt_config *cc = ti->private; in crypt_preresume()
3658 struct crypt_config *cc = ti->private; in crypt_resume()
3670 struct crypt_config *cc = ti->private; in crypt_message()
3711 struct crypt_config *cc = ti->private; in crypt_iterate_devices()
3718 struct crypt_config *cc = ti->private; in crypt_io_hints()