Lines Matching refs:crypt_config

72 	struct crypt_config *cc;
97 struct crypt_config;
100 int (*ctr)(struct crypt_config *cc, struct dm_target *ti,
102 void (*dtr)(struct crypt_config *cc);
103 int (*init)(struct crypt_config *cc);
104 int (*wipe)(struct crypt_config *cc);
105 int (*generator)(struct crypt_config *cc, u8 *iv,
107 int (*post)(struct crypt_config *cc, u8 *iv,
151 struct crypt_config { struct
242 static struct scatterlist *crypt_get_sg_data(struct crypt_config *cc, argument
245 static bool crypt_integrity_aead(struct crypt_config *cc);
250 static struct crypto_skcipher *any_tfm(struct crypt_config *cc) in any_tfm()
255 static struct crypto_aead *any_tfm_aead(struct crypt_config *cc) in any_tfm_aead()
316 static int crypt_iv_plain_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_plain_gen()
325 static int crypt_iv_plain64_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_plain64_gen()
334 static int crypt_iv_plain64be_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_plain64be_gen()
344 static int crypt_iv_essiv_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_essiv_gen()
357 static int crypt_iv_benbi_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_benbi_ctr()
388 static void crypt_iv_benbi_dtr(struct crypt_config *cc) in crypt_iv_benbi_dtr()
392 static int crypt_iv_benbi_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_benbi_gen()
405 static int crypt_iv_null_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_null_gen()
413 static void crypt_iv_lmk_dtr(struct crypt_config *cc) in crypt_iv_lmk_dtr()
425 static int crypt_iv_lmk_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_lmk_ctr()
458 static int crypt_iv_lmk_init(struct crypt_config *cc) in crypt_iv_lmk_init()
471 static int crypt_iv_lmk_wipe(struct crypt_config *cc) in crypt_iv_lmk_wipe()
481 static int crypt_iv_lmk_one(struct crypt_config *cc, u8 *iv, in crypt_iv_lmk_one()
529 static int crypt_iv_lmk_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_lmk_gen()
547 static int crypt_iv_lmk_post(struct crypt_config *cc, u8 *iv, in crypt_iv_lmk_post()
569 static void crypt_iv_tcw_dtr(struct crypt_config *cc) in crypt_iv_tcw_dtr()
583 static int crypt_iv_tcw_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_tcw_ctr()
616 static int crypt_iv_tcw_init(struct crypt_config *cc) in crypt_iv_tcw_init()
628 static int crypt_iv_tcw_wipe(struct crypt_config *cc) in crypt_iv_tcw_wipe()
638 static int crypt_iv_tcw_whitening(struct crypt_config *cc, in crypt_iv_tcw_whitening()
676 static int crypt_iv_tcw_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_tcw_gen()
702 static int crypt_iv_tcw_post(struct crypt_config *cc, u8 *iv, in crypt_iv_tcw_post()
721 static int crypt_iv_random_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_random_gen()
729 static int crypt_iv_eboiv_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_eboiv_ctr()
745 static int crypt_iv_eboiv_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_eboiv_gen()
779 static void crypt_iv_elephant_dtr(struct crypt_config *cc) in crypt_iv_elephant_dtr()
787 static int crypt_iv_elephant_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_elephant_ctr()
951 static int crypt_iv_elephant(struct crypt_config *cc, struct dm_crypt_request *dmreq) in crypt_iv_elephant()
1024 static int crypt_iv_elephant_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_elephant_gen()
1038 static int crypt_iv_elephant_post(struct crypt_config *cc, u8 *iv, in crypt_iv_elephant_post()
1047 static int crypt_iv_elephant_init(struct crypt_config *cc) in crypt_iv_elephant_init()
1055 static int crypt_iv_elephant_wipe(struct crypt_config *cc) in crypt_iv_elephant_wipe()
1129 static bool crypt_integrity_aead(struct crypt_config *cc) in crypt_integrity_aead()
1134 static bool crypt_integrity_hmac(struct crypt_config *cc) in crypt_integrity_hmac()
1140 static struct scatterlist *crypt_get_sg_data(struct crypt_config *cc, in crypt_get_sg_data()
1174 static int crypt_integrity_ctr(struct crypt_config *cc, struct dm_target *ti) in crypt_integrity_ctr()
1221 static void crypt_convert_init(struct crypt_config *cc, in crypt_convert_init()
1236 static struct dm_crypt_request *dmreq_of_req(struct crypt_config *cc, in dmreq_of_req()
1242 static void *req_of_dmreq(struct crypt_config *cc, struct dm_crypt_request *dmreq) in req_of_dmreq()
1247 static u8 *iv_of_dmreq(struct crypt_config *cc, in iv_of_dmreq()
1258 static u8 *org_iv_of_dmreq(struct crypt_config *cc, in org_iv_of_dmreq()
1264 static __le64 *org_sector_of_dmreq(struct crypt_config *cc, in org_sector_of_dmreq()
1272 static unsigned int *org_tag_of_dmreq(struct crypt_config *cc, in org_tag_of_dmreq()
1281 static void *tag_from_dmreq(struct crypt_config *cc, in tag_from_dmreq()
1291 static void *iv_tag_from_dmreq(struct crypt_config *cc, in iv_tag_from_dmreq()
1297 static int crypt_convert_block_aead(struct crypt_config *cc, in crypt_convert_block_aead()
1396 static int crypt_convert_block_skcipher(struct crypt_config *cc, in crypt_convert_block_skcipher()
1475 static int crypt_alloc_req_skcipher(struct crypt_config *cc, in crypt_alloc_req_skcipher()
1499 static int crypt_alloc_req_aead(struct crypt_config *cc, in crypt_alloc_req_aead()
1521 static int crypt_alloc_req(struct crypt_config *cc, in crypt_alloc_req()
1530 static void crypt_free_req_skcipher(struct crypt_config *cc, in crypt_free_req_skcipher()
1539 static void crypt_free_req_aead(struct crypt_config *cc, in crypt_free_req_aead()
1548 static void crypt_free_req(struct crypt_config *cc, void *req, struct bio *base_bio) in crypt_free_req()
1559 static blk_status_t crypt_convert(struct crypt_config *cc, in crypt_convert()
1653 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone);
1677 struct crypt_config *cc = io->cc; in crypt_alloc_buffer()
1738 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone) in crypt_free_buffer_pages()
1752 static void crypt_io_init(struct dm_crypt_io *io, struct crypt_config *cc, in crypt_io_init()
1784 struct crypt_config *cc = io->cc; in crypt_dec_pending()
1838 struct crypt_config *cc = io->cc; in crypt_endio()
1866 struct crypt_config *cc = io->cc; in kcryptd_io_read()
1907 struct crypt_config *cc = io->cc; in kcryptd_queue_read()
1924 struct crypt_config *cc = data; in dmcrypt_write()
1978 struct crypt_config *cc = io->cc; in kcryptd_crypt_write_io_submit()
2019 static bool kcryptd_crypt_write_inline(struct crypt_config *cc, in kcryptd_crypt_write_inline()
2043 struct crypt_config *cc = io->cc; in kcryptd_crypt_write_continue()
2073 struct crypt_config *cc = io->cc; in kcryptd_crypt_write_convert()
2137 struct crypt_config *cc = io->cc; in kcryptd_crypt_read_continue()
2155 struct crypt_config *cc = io->cc; in kcryptd_crypt_read_convert()
2188 struct crypt_config *cc = io->cc; in kcryptd_async_done()
2253 struct crypt_config *cc = io->cc; in kcryptd_queue_crypt()
2277 static void crypt_free_tfms_aead(struct crypt_config *cc) in crypt_free_tfms_aead()
2291 static void crypt_free_tfms_skcipher(struct crypt_config *cc) in crypt_free_tfms_skcipher()
2308 static void crypt_free_tfms(struct crypt_config *cc) in crypt_free_tfms()
2316 static int crypt_alloc_tfms_skcipher(struct crypt_config *cc, char *ciphermode) in crypt_alloc_tfms_skcipher()
2347 static int crypt_alloc_tfms_aead(struct crypt_config *cc, char *ciphermode) in crypt_alloc_tfms_aead()
2368 static int crypt_alloc_tfms(struct crypt_config *cc, char *ciphermode) in crypt_alloc_tfms()
2376 static unsigned int crypt_subkey_size(struct crypt_config *cc) in crypt_subkey_size()
2381 static unsigned int crypt_authenckey_size(struct crypt_config *cc) in crypt_authenckey_size()
2408 static int crypt_setkey(struct crypt_config *cc) in crypt_setkey()
2457 static int set_key_user(struct crypt_config *cc, struct key *key) in set_key_user()
2473 static int set_key_encrypted(struct crypt_config *cc, struct key *key) in set_key_encrypted()
2489 static int set_key_trusted(struct crypt_config *cc, struct key *key) in set_key_trusted()
2505 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string) in crypt_set_keyring_key()
2511 int (*set_key)(struct crypt_config *cc, struct key *key); in crypt_set_keyring_key()
2608 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string) in crypt_set_keyring_key()
2620 static int crypt_set_key(struct crypt_config *cc, char *key) in crypt_set_key()
2657 static int crypt_wipe_key(struct crypt_config *cc) in crypt_wipe_key()
2694 struct crypt_config *cc = pool_data; in crypt_page_alloc()
2715 struct crypt_config *cc = pool_data; in crypt_page_free()
2723 struct crypt_config *cc = ti->private; in crypt_dtr()
2776 struct crypt_config *cc = ti->private; in crypt_ctr_ivmode()
2849 static int crypt_ctr_auth_cipher(struct crypt_config *cc, char *cipher_api) in crypt_ctr_auth_cipher()
2886 struct crypt_config *cc = ti->private; in crypt_ctr_cipher_new()
2959 struct crypt_config *cc = ti->private; in crypt_ctr_cipher_old()
3043 struct crypt_config *cc = ti->private; in crypt_ctr_cipher()
3099 struct crypt_config *cc = ti->private; in crypt_ctr_optional()
3180 struct crypt_config *cc = ti->private; in crypt_report_zones()
3196 struct crypt_config *cc; in crypt_ctr()
3412 struct crypt_config *cc = ti->private; in crypt_map()
3486 struct crypt_config *cc = ti->private; in crypt_status()
3575 struct crypt_config *cc = ti->private; in crypt_postsuspend()
3582 struct crypt_config *cc = ti->private; in crypt_preresume()
3594 struct crypt_config *cc = ti->private; in crypt_resume()
3606 struct crypt_config *cc = ti->private; in crypt_message()
3647 struct crypt_config *cc = ti->private; in crypt_iterate_devices()
3654 struct crypt_config *cc = ti->private; in crypt_io_hints()