Lines Matching defs:crypt_config
67 struct crypt_config *cc;
92 struct crypt_config;
95 int (*ctr)(struct crypt_config *cc, struct dm_target *ti,
97 void (*dtr)(struct crypt_config *cc);
98 int (*init)(struct crypt_config *cc);
99 int (*wipe)(struct crypt_config *cc);
100 int (*generator)(struct crypt_config *cc, u8 *iv,
102 int (*post)(struct crypt_config *cc, u8 *iv,
146 struct crypt_config {
237 static struct scatterlist *crypt_get_sg_data(struct crypt_config *cc,
240 static bool crypt_integrity_aead(struct crypt_config *cc);
245 static struct crypto_skcipher *any_tfm(struct crypt_config *cc)
250 static struct crypto_aead *any_tfm_aead(struct crypt_config *cc)
311 static int crypt_iv_plain_gen(struct crypt_config *cc, u8 *iv,
320 static int crypt_iv_plain64_gen(struct crypt_config *cc, u8 *iv,
329 static int crypt_iv_plain64be_gen(struct crypt_config *cc, u8 *iv,
339 static int crypt_iv_essiv_gen(struct crypt_config *cc, u8 *iv,
352 static int crypt_iv_benbi_ctr(struct crypt_config *cc, struct dm_target *ti,
382 static void crypt_iv_benbi_dtr(struct crypt_config *cc)
386 static int crypt_iv_benbi_gen(struct crypt_config *cc, u8 *iv,
399 static int crypt_iv_null_gen(struct crypt_config *cc, u8 *iv,
407 static void crypt_iv_lmk_dtr(struct crypt_config *cc)
419 static int crypt_iv_lmk_ctr(struct crypt_config *cc, struct dm_target *ti,
452 static int crypt_iv_lmk_init(struct crypt_config *cc)
465 static int crypt_iv_lmk_wipe(struct crypt_config *cc)
475 static int crypt_iv_lmk_one(struct crypt_config *cc, u8 *iv,
523 static int crypt_iv_lmk_gen(struct crypt_config *cc, u8 *iv,
541 static int crypt_iv_lmk_post(struct crypt_config *cc, u8 *iv,
563 static void crypt_iv_tcw_dtr(struct crypt_config *cc)
577 static int crypt_iv_tcw_ctr(struct crypt_config *cc, struct dm_target *ti,
610 static int crypt_iv_tcw_init(struct crypt_config *cc)
622 static int crypt_iv_tcw_wipe(struct crypt_config *cc)
632 static int crypt_iv_tcw_whitening(struct crypt_config *cc,
670 static int crypt_iv_tcw_gen(struct crypt_config *cc, u8 *iv,
696 static int crypt_iv_tcw_post(struct crypt_config *cc, u8 *iv,
715 static int crypt_iv_random_gen(struct crypt_config *cc, u8 *iv,
723 static int crypt_iv_eboiv_ctr(struct crypt_config *cc, struct dm_target *ti,
740 static int crypt_iv_eboiv_gen(struct crypt_config *cc, u8 *iv,
766 static void crypt_iv_elephant_dtr(struct crypt_config *cc)
774 static int crypt_iv_elephant_ctr(struct crypt_config *cc, struct dm_target *ti,
938 static int crypt_iv_elephant(struct crypt_config *cc, struct dm_crypt_request *dmreq)
1011 static int crypt_iv_elephant_gen(struct crypt_config *cc, u8 *iv,
1025 static int crypt_iv_elephant_post(struct crypt_config *cc, u8 *iv,
1034 static int crypt_iv_elephant_init(struct crypt_config *cc)
1042 static int crypt_iv_elephant_wipe(struct crypt_config *cc)
1116 static bool crypt_integrity_aead(struct crypt_config *cc)
1121 static bool crypt_integrity_hmac(struct crypt_config *cc)
1127 static struct scatterlist *crypt_get_sg_data(struct crypt_config *cc,
1162 static int crypt_integrity_ctr(struct crypt_config *cc, struct dm_target *ti)
1209 static void crypt_convert_init(struct crypt_config *cc,
1224 static struct dm_crypt_request *dmreq_of_req(struct crypt_config *cc,
1230 static void *req_of_dmreq(struct crypt_config *cc, struct dm_crypt_request *dmreq)
1235 static u8 *iv_of_dmreq(struct crypt_config *cc,
1246 static u8 *org_iv_of_dmreq(struct crypt_config *cc,
1252 static __le64 *org_sector_of_dmreq(struct crypt_config *cc,
1259 static unsigned int *org_tag_of_dmreq(struct crypt_config *cc,
1267 static void *tag_from_dmreq(struct crypt_config *cc,
1277 static void *iv_tag_from_dmreq(struct crypt_config *cc,
1283 static int crypt_convert_block_aead(struct crypt_config *cc,
1379 static int crypt_convert_block_skcipher(struct crypt_config *cc,
1459 static int crypt_alloc_req_skcipher(struct crypt_config *cc,
1483 static int crypt_alloc_req_aead(struct crypt_config *cc,
1505 static int crypt_alloc_req(struct crypt_config *cc,
1514 static void crypt_free_req_skcipher(struct crypt_config *cc,
1523 static void crypt_free_req_aead(struct crypt_config *cc,
1532 static void crypt_free_req(struct crypt_config *cc, void *req, struct bio *base_bio)
1543 static blk_status_t crypt_convert(struct crypt_config *cc,
1637 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone);
1658 struct crypt_config *cc = io->cc;
1706 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone)
1717 static void crypt_io_init(struct dm_crypt_io *io, struct crypt_config *cc,
1748 struct crypt_config *cc = io->cc;
1802 struct crypt_config *cc = io->cc;
1828 struct crypt_config *cc = io->cc;
1838 struct crypt_config *cc = io->cc;
1878 struct crypt_config *cc = io->cc;
1895 struct crypt_config *cc = data;
1949 struct crypt_config *cc = io->cc;
1990 static bool kcryptd_crypt_write_inline(struct crypt_config *cc,
2015 struct crypt_config *cc = io->cc;
2045 struct crypt_config *cc = io->cc;
2109 struct crypt_config *cc = io->cc;
2127 struct crypt_config *cc = io->cc;
2161 struct crypt_config *cc = io->cc;
2223 struct crypt_config *cc = io->cc;
2247 static void crypt_free_tfms_aead(struct crypt_config *cc)
2261 static void crypt_free_tfms_skcipher(struct crypt_config *cc)
2278 static void crypt_free_tfms(struct crypt_config *cc)
2286 static int crypt_alloc_tfms_skcipher(struct crypt_config *cc, char *ciphermode)
2317 static int crypt_alloc_tfms_aead(struct crypt_config *cc, char *ciphermode)
2338 static int crypt_alloc_tfms(struct crypt_config *cc, char *ciphermode)
2346 static unsigned crypt_subkey_size(struct crypt_config *cc)
2351 static unsigned crypt_authenckey_size(struct crypt_config *cc)
2378 static int crypt_setkey(struct crypt_config *cc)
2427 static int set_key_user(struct crypt_config *cc, struct key *key)
2444 static int set_key_encrypted(struct crypt_config *cc, struct key *key)
2461 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string)
2467 int (*set_key)(struct crypt_config *cc, struct key *key);
2561 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string)
2573 static int crypt_set_key(struct crypt_config *cc, char *key)
2610 static int crypt_wipe_key(struct crypt_config *cc)
2647 struct crypt_config *cc = pool_data;
2668 struct crypt_config *cc = pool_data;
2676 struct crypt_config *cc = ti->private;
2727 struct crypt_config *cc = ti->private;
2800 static int crypt_ctr_auth_cipher(struct crypt_config *cc, char *cipher_api)
2837 struct crypt_config *cc = ti->private;
2910 struct crypt_config *cc = ti->private;
2994 struct crypt_config *cc = ti->private;
3050 struct crypt_config *cc = ti->private;
3132 struct crypt_config *cc = ti->private;
3148 struct crypt_config *cc;
3348 struct crypt_config *cc = ti->private;
3419 struct crypt_config *cc = ti->private;
3481 struct crypt_config *cc = ti->private;
3488 struct crypt_config *cc = ti->private;
3500 struct crypt_config *cc = ti->private;
3512 struct crypt_config *cc = ti->private;
3553 struct crypt_config *cc = ti->private;
3560 struct crypt_config *cc = ti->private;