Lines Matching refs:crypt_config

76 	struct crypt_config *cc;
101 struct crypt_config;
104 int (*ctr)(struct crypt_config *cc, struct dm_target *ti,
106 void (*dtr)(struct crypt_config *cc);
107 int (*init)(struct crypt_config *cc);
108 int (*wipe)(struct crypt_config *cc);
109 int (*generator)(struct crypt_config *cc, u8 *iv,
111 int (*post)(struct crypt_config *cc, u8 *iv,
155 struct crypt_config {
247 static struct scatterlist *crypt_get_sg_data(struct crypt_config *cc,
250 static bool crypt_integrity_aead(struct crypt_config *cc);
255 static struct crypto_skcipher *any_tfm(struct crypt_config *cc)
260 static struct crypto_aead *any_tfm_aead(struct crypt_config *cc)
321 static int crypt_iv_plain_gen(struct crypt_config *cc, u8 *iv,
330 static int crypt_iv_plain64_gen(struct crypt_config *cc, u8 *iv,
339 static int crypt_iv_plain64be_gen(struct crypt_config *cc, u8 *iv,
349 static int crypt_iv_essiv_gen(struct crypt_config *cc, u8 *iv,
362 static int crypt_iv_benbi_ctr(struct crypt_config *cc, struct dm_target *ti,
393 static void crypt_iv_benbi_dtr(struct crypt_config *cc)
397 static int crypt_iv_benbi_gen(struct crypt_config *cc, u8 *iv,
410 static int crypt_iv_null_gen(struct crypt_config *cc, u8 *iv,
418 static void crypt_iv_lmk_dtr(struct crypt_config *cc)
430 static int crypt_iv_lmk_ctr(struct crypt_config *cc, struct dm_target *ti,
463 static int crypt_iv_lmk_init(struct crypt_config *cc)
476 static int crypt_iv_lmk_wipe(struct crypt_config *cc)
486 static int crypt_iv_lmk_one(struct crypt_config *cc, u8 *iv,
534 static int crypt_iv_lmk_gen(struct crypt_config *cc, u8 *iv,
552 static int crypt_iv_lmk_post(struct crypt_config *cc, u8 *iv,
574 static void crypt_iv_tcw_dtr(struct crypt_config *cc)
588 static int crypt_iv_tcw_ctr(struct crypt_config *cc, struct dm_target *ti,
621 static int crypt_iv_tcw_init(struct crypt_config *cc)
633 static int crypt_iv_tcw_wipe(struct crypt_config *cc)
643 static int crypt_iv_tcw_whitening(struct crypt_config *cc,
675 static int crypt_iv_tcw_gen(struct crypt_config *cc, u8 *iv,
701 static int crypt_iv_tcw_post(struct crypt_config *cc, u8 *iv,
720 static int crypt_iv_random_gen(struct crypt_config *cc, u8 *iv,
728 static int crypt_iv_eboiv_ctr(struct crypt_config *cc, struct dm_target *ti,
744 static int crypt_iv_eboiv_gen(struct crypt_config *cc, u8 *iv,
778 static void crypt_iv_elephant_dtr(struct crypt_config *cc)
786 static int crypt_iv_elephant_ctr(struct crypt_config *cc, struct dm_target *ti,
950 static int crypt_iv_elephant(struct crypt_config *cc, struct dm_crypt_request *dmreq)
1023 static int crypt_iv_elephant_gen(struct crypt_config *cc, u8 *iv,
1037 static int crypt_iv_elephant_post(struct crypt_config *cc, u8 *iv,
1046 static int crypt_iv_elephant_init(struct crypt_config *cc)
1054 static int crypt_iv_elephant_wipe(struct crypt_config *cc)
1128 static bool crypt_integrity_aead(struct crypt_config *cc)
1133 static bool crypt_integrity_hmac(struct crypt_config *cc)
1139 static struct scatterlist *crypt_get_sg_data(struct crypt_config *cc,
1173 static int crypt_integrity_ctr(struct crypt_config *cc, struct dm_target *ti)
1220 static void crypt_convert_init(struct crypt_config *cc,
1235 static struct dm_crypt_request *dmreq_of_req(struct crypt_config *cc,
1241 static void *req_of_dmreq(struct crypt_config *cc, struct dm_crypt_request *dmreq)
1246 static u8 *iv_of_dmreq(struct crypt_config *cc,
1257 static u8 *org_iv_of_dmreq(struct crypt_config *cc,
1263 static __le64 *org_sector_of_dmreq(struct crypt_config *cc,
1271 static unsigned int *org_tag_of_dmreq(struct crypt_config *cc,
1280 static void *tag_from_dmreq(struct crypt_config *cc,
1290 static void *iv_tag_from_dmreq(struct crypt_config *cc,
1296 static int crypt_convert_block_aead(struct crypt_config *cc,
1398 static int crypt_convert_block_skcipher(struct crypt_config *cc,
1477 static int crypt_alloc_req_skcipher(struct crypt_config *cc,
1501 static int crypt_alloc_req_aead(struct crypt_config *cc,
1523 static int crypt_alloc_req(struct crypt_config *cc,
1532 static void crypt_free_req_skcipher(struct crypt_config *cc,
1541 static void crypt_free_req_aead(struct crypt_config *cc,
1550 static void crypt_free_req(struct crypt_config *cc, void *req, struct bio *base_bio)
1561 static blk_status_t crypt_convert(struct crypt_config *cc,
1655 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone);
1679 struct crypt_config *cc = io->cc;
1747 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone)
1764 static void crypt_io_init(struct dm_crypt_io *io, struct crypt_config *cc,
1792 struct crypt_config *cc = io->cc;
1841 struct crypt_config *cc = io->cc;
1873 struct crypt_config *cc = io->cc;
1930 struct crypt_config *cc = io->cc;
1947 struct crypt_config *cc = data;
2000 struct crypt_config *cc = io->cc;
2041 static bool kcryptd_crypt_write_inline(struct crypt_config *cc,
2065 struct crypt_config *cc = io->cc;
2095 struct crypt_config *cc = io->cc;
2173 struct crypt_config *cc = io->cc;
2191 struct crypt_config *cc = io->cc;
2230 struct crypt_config *cc = io->cc;
2293 struct crypt_config *cc = io->cc;
2316 static void crypt_free_tfms_aead(struct crypt_config *cc)
2330 static void crypt_free_tfms_skcipher(struct crypt_config *cc)
2347 static void crypt_free_tfms(struct crypt_config *cc)
2355 static int crypt_alloc_tfms_skcipher(struct crypt_config *cc, char *ciphermode)
2386 static int crypt_alloc_tfms_aead(struct crypt_config *cc, char *ciphermode)
2407 static int crypt_alloc_tfms(struct crypt_config *cc, char *ciphermode)
2415 static unsigned int crypt_subkey_size(struct crypt_config *cc)
2420 static unsigned int crypt_authenckey_size(struct crypt_config *cc)
2447 static int crypt_setkey(struct crypt_config *cc)
2496 static int set_key_user(struct crypt_config *cc, struct key *key)
2512 static int set_key_encrypted(struct crypt_config *cc, struct key *key)
2528 static int set_key_trusted(struct crypt_config *cc, struct key *key)
2544 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string)
2550 int (*set_key)(struct crypt_config *cc, struct key *key);
2647 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string)
2659 static int crypt_set_key(struct crypt_config *cc, char *key)
2696 static int crypt_wipe_key(struct crypt_config *cc)
2733 struct crypt_config *cc = pool_data;
2754 struct crypt_config *cc = pool_data;
2762 struct crypt_config *cc = ti->private;
2818 struct crypt_config *cc = ti->private;
2891 static int crypt_ctr_auth_cipher(struct crypt_config *cc, char *cipher_api)
2927 struct crypt_config *cc = ti->private;
3000 struct crypt_config *cc = ti->private;
3084 struct crypt_config *cc = ti->private;
3140 struct crypt_config *cc = ti->private;
3223 struct crypt_config *cc = ti->private;
3239 struct crypt_config *cc;
3476 struct crypt_config *cc = ti->private;
3550 struct crypt_config *cc = ti->private;
3643 struct crypt_config *cc = ti->private;
3650 struct crypt_config *cc = ti->private;
3662 struct crypt_config *cc = ti->private;
3674 struct crypt_config *cc = ti->private;
3715 struct crypt_config *cc = ti->private;
3722 struct crypt_config *cc = ti->private;