Lines Matching defs:crypt_config

74 	struct crypt_config *cc;
99 struct crypt_config;
102 int (*ctr)(struct crypt_config *cc, struct dm_target *ti,
104 void (*dtr)(struct crypt_config *cc);
105 int (*init)(struct crypt_config *cc);
106 int (*wipe)(struct crypt_config *cc);
107 int (*generator)(struct crypt_config *cc, u8 *iv,
109 int (*post)(struct crypt_config *cc, u8 *iv,
153 struct crypt_config {
244 static struct scatterlist *crypt_get_sg_data(struct crypt_config *cc,
247 static bool crypt_integrity_aead(struct crypt_config *cc);
252 static struct crypto_skcipher *any_tfm(struct crypt_config *cc)
257 static struct crypto_aead *any_tfm_aead(struct crypt_config *cc)
318 static int crypt_iv_plain_gen(struct crypt_config *cc, u8 *iv,
327 static int crypt_iv_plain64_gen(struct crypt_config *cc, u8 *iv,
336 static int crypt_iv_plain64be_gen(struct crypt_config *cc, u8 *iv,
346 static int crypt_iv_essiv_gen(struct crypt_config *cc, u8 *iv,
359 static int crypt_iv_benbi_ctr(struct crypt_config *cc, struct dm_target *ti,
390 static void crypt_iv_benbi_dtr(struct crypt_config *cc)
394 static int crypt_iv_benbi_gen(struct crypt_config *cc, u8 *iv,
407 static int crypt_iv_null_gen(struct crypt_config *cc, u8 *iv,
415 static void crypt_iv_lmk_dtr(struct crypt_config *cc)
427 static int crypt_iv_lmk_ctr(struct crypt_config *cc, struct dm_target *ti,
460 static int crypt_iv_lmk_init(struct crypt_config *cc)
473 static int crypt_iv_lmk_wipe(struct crypt_config *cc)
483 static int crypt_iv_lmk_one(struct crypt_config *cc, u8 *iv,
531 static int crypt_iv_lmk_gen(struct crypt_config *cc, u8 *iv,
549 static int crypt_iv_lmk_post(struct crypt_config *cc, u8 *iv,
571 static void crypt_iv_tcw_dtr(struct crypt_config *cc)
585 static int crypt_iv_tcw_ctr(struct crypt_config *cc, struct dm_target *ti,
618 static int crypt_iv_tcw_init(struct crypt_config *cc)
630 static int crypt_iv_tcw_wipe(struct crypt_config *cc)
640 static int crypt_iv_tcw_whitening(struct crypt_config *cc,
678 static int crypt_iv_tcw_gen(struct crypt_config *cc, u8 *iv,
704 static int crypt_iv_tcw_post(struct crypt_config *cc, u8 *iv,
723 static int crypt_iv_random_gen(struct crypt_config *cc, u8 *iv,
731 static int crypt_iv_eboiv_ctr(struct crypt_config *cc, struct dm_target *ti,
747 static int crypt_iv_eboiv_gen(struct crypt_config *cc, u8 *iv,
781 static void crypt_iv_elephant_dtr(struct crypt_config *cc)
789 static int crypt_iv_elephant_ctr(struct crypt_config *cc, struct dm_target *ti,
953 static int crypt_iv_elephant(struct crypt_config *cc, struct dm_crypt_request *dmreq)
1026 static int crypt_iv_elephant_gen(struct crypt_config *cc, u8 *iv,
1040 static int crypt_iv_elephant_post(struct crypt_config *cc, u8 *iv,
1049 static int crypt_iv_elephant_init(struct crypt_config *cc)
1057 static int crypt_iv_elephant_wipe(struct crypt_config *cc)
1131 static bool crypt_integrity_aead(struct crypt_config *cc)
1136 static bool crypt_integrity_hmac(struct crypt_config *cc)
1142 static struct scatterlist *crypt_get_sg_data(struct crypt_config *cc,
1176 static int crypt_integrity_ctr(struct crypt_config *cc, struct dm_target *ti)
1223 static void crypt_convert_init(struct crypt_config *cc,
1238 static struct dm_crypt_request *dmreq_of_req(struct crypt_config *cc,
1244 static void *req_of_dmreq(struct crypt_config *cc, struct dm_crypt_request *dmreq)
1249 static u8 *iv_of_dmreq(struct crypt_config *cc,
1260 static u8 *org_iv_of_dmreq(struct crypt_config *cc,
1266 static __le64 *org_sector_of_dmreq(struct crypt_config *cc,
1274 static unsigned int *org_tag_of_dmreq(struct crypt_config *cc,
1283 static void *tag_from_dmreq(struct crypt_config *cc,
1293 static void *iv_tag_from_dmreq(struct crypt_config *cc,
1299 static int crypt_convert_block_aead(struct crypt_config *cc,
1401 static int crypt_convert_block_skcipher(struct crypt_config *cc,
1480 static int crypt_alloc_req_skcipher(struct crypt_config *cc,
1504 static int crypt_alloc_req_aead(struct crypt_config *cc,
1526 static int crypt_alloc_req(struct crypt_config *cc,
1535 static void crypt_free_req_skcipher(struct crypt_config *cc,
1544 static void crypt_free_req_aead(struct crypt_config *cc,
1553 static void crypt_free_req(struct crypt_config *cc, void *req, struct bio *base_bio)
1564 static blk_status_t crypt_convert(struct crypt_config *cc,
1658 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone);
1682 struct crypt_config *cc = io->cc;
1749 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone)
1766 static void crypt_io_init(struct dm_crypt_io *io, struct crypt_config *cc,
1794 struct crypt_config *cc = io->cc;
1843 struct crypt_config *cc = io->cc;
1875 struct crypt_config *cc = io->cc;
1932 struct crypt_config *cc = io->cc;
1949 struct crypt_config *cc = data;
2003 struct crypt_config *cc = io->cc;
2044 static bool kcryptd_crypt_write_inline(struct crypt_config *cc,
2068 struct crypt_config *cc = io->cc;
2098 struct crypt_config *cc = io->cc;
2176 struct crypt_config *cc = io->cc;
2194 struct crypt_config *cc = io->cc;
2233 struct crypt_config *cc = io->cc;
2296 struct crypt_config *cc = io->cc;
2315 static void crypt_free_tfms_aead(struct crypt_config *cc)
2329 static void crypt_free_tfms_skcipher(struct crypt_config *cc)
2346 static void crypt_free_tfms(struct crypt_config *cc)
2354 static int crypt_alloc_tfms_skcipher(struct crypt_config *cc, char *ciphermode)
2385 static int crypt_alloc_tfms_aead(struct crypt_config *cc, char *ciphermode)
2406 static int crypt_alloc_tfms(struct crypt_config *cc, char *ciphermode)
2414 static unsigned int crypt_subkey_size(struct crypt_config *cc)
2419 static unsigned int crypt_authenckey_size(struct crypt_config *cc)
2446 static int crypt_setkey(struct crypt_config *cc)
2495 static int set_key_user(struct crypt_config *cc, struct key *key)
2511 static int set_key_encrypted(struct crypt_config *cc, struct key *key)
2527 static int set_key_trusted(struct crypt_config *cc, struct key *key)
2543 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string)
2549 int (*set_key)(struct crypt_config *cc, struct key *key);
2646 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string)
2658 static int crypt_set_key(struct crypt_config *cc, char *key)
2695 static int crypt_wipe_key(struct crypt_config *cc)
2732 struct crypt_config *cc = pool_data;
2753 struct crypt_config *cc = pool_data;
2761 struct crypt_config *cc = ti->private;
2814 struct crypt_config *cc = ti->private;
2887 static int crypt_ctr_auth_cipher(struct crypt_config *cc, char *cipher_api)
2924 struct crypt_config *cc = ti->private;
2997 struct crypt_config *cc = ti->private;
3081 struct crypt_config *cc = ti->private;
3137 struct crypt_config *cc = ti->private;
3218 struct crypt_config *cc = ti->private;
3234 struct crypt_config *cc;
3450 struct crypt_config *cc = ti->private;
3524 struct crypt_config *cc = ti->private;
3613 struct crypt_config *cc = ti->private;
3620 struct crypt_config *cc = ti->private;
3632 struct crypt_config *cc = ti->private;
3644 struct crypt_config *cc = ti->private;
3685 struct crypt_config *cc = ti->private;
3692 struct crypt_config *cc = ti->private;