/Linux-v4.19/arch/x86/crypto/ |
D | fpu.c | 120 const char *cipher_name; in crypto_fpu_create() local 134 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_fpu_create() 135 if (IS_ERR(cipher_name)) in crypto_fpu_create() 136 return PTR_ERR(cipher_name); in crypto_fpu_create() 145 err = crypto_grab_skcipher(spawn, cipher_name, CRYPTO_ALG_INTERNAL, in crypto_fpu_create()
|
/Linux-v4.19/crypto/ |
D | lrw.c | 463 const char *cipher_name; in create() local 474 cipher_name = crypto_attr_alg_name(tb[1]); in create() 475 if (IS_ERR(cipher_name)) in create() 476 return PTR_ERR(cipher_name); in create() 485 err = crypto_grab_skcipher(spawn, cipher_name, 0, in create() 491 cipher_name) >= CRYPTO_MAX_ALG_NAME) in create() 517 cipher_name = alg->base.cra_name; in create() 522 if (!strncmp(cipher_name, "ecb(", 4)) { in create() 525 len = strlcpy(ecb_name, cipher_name + 4, sizeof(ecb_name)); in create()
|
D | xts.c | 408 const char *cipher_name; in create() local 419 cipher_name = crypto_attr_alg_name(tb[1]); in create() 420 if (IS_ERR(cipher_name)) in create() 421 return PTR_ERR(cipher_name); in create() 435 err = crypto_grab_skcipher(&ctx->spawn, cipher_name, 0, mask); in create() 439 cipher_name) >= CRYPTO_MAX_ALG_NAME) in create() 463 cipher_name = alg->base.cra_name; in create() 468 if (!strncmp(cipher_name, "ecb(", 4)) { in create() 471 len = strlcpy(ctx->name, cipher_name + 4, sizeof(ctx->name)); in create()
|
D | ccm.c | 564 const char *cipher_name; in crypto_ccm_create() local 569 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_ccm_create() 570 if (IS_ERR(cipher_name)) in crypto_ccm_create() 571 return PTR_ERR(cipher_name); in crypto_ccm_create() 574 cipher_name) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create() 578 cipher_name) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create() 581 if (snprintf(full_name, CRYPTO_MAX_ALG_NAME, "ccm(%s)", cipher_name) >= in crypto_ccm_create() 599 const char *cipher_name; in crypto_ccm_base_create() local 606 cipher_name = crypto_attr_alg_name(tb[2]); in crypto_ccm_base_create() 607 if (IS_ERR(cipher_name)) in crypto_ccm_base_create() [all …]
|
D | cts.c | 330 const char *cipher_name; in crypto_cts_create() local 340 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_cts_create() 341 if (IS_ERR(cipher_name)) in crypto_cts_create() 342 return PTR_ERR(cipher_name); in crypto_cts_create() 351 err = crypto_grab_skcipher(spawn, cipher_name, 0, in crypto_cts_create()
|
D | ctr.c | 360 const char *cipher_name; in crypto_rfc3686_create() local 372 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_rfc3686_create() 373 if (IS_ERR(cipher_name)) in crypto_rfc3686_create() 374 return PTR_ERR(cipher_name); in crypto_rfc3686_create() 387 err = crypto_grab_skcipher(spawn, cipher_name, 0, mask); in crypto_rfc3686_create()
|
D | gcm.c | 710 const char *cipher_name; in crypto_gcm_create() local 714 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_gcm_create() 715 if (IS_ERR(cipher_name)) in crypto_gcm_create() 716 return PTR_ERR(cipher_name); in crypto_gcm_create() 718 if (snprintf(ctr_name, CRYPTO_MAX_ALG_NAME, "ctr(%s)", cipher_name) >= in crypto_gcm_create() 722 if (snprintf(full_name, CRYPTO_MAX_ALG_NAME, "gcm(%s)", cipher_name) >= in crypto_gcm_create()
|
/Linux-v4.19/fs/ecryptfs/ |
D | crypto.c | 107 char *cipher_name, in ecryptfs_crypto_api_algify_cipher_name() argument 110 int cipher_name_len = strlen(cipher_name); in ecryptfs_crypto_api_algify_cipher_name() 122 chaining_modifier, cipher_name); in ecryptfs_crypto_api_algify_cipher_name() 961 u8 ecryptfs_code_for_cipher_string(char *cipher_name, size_t key_bytes) in ecryptfs_code_for_cipher_string() argument 968 if (strcmp(cipher_name, "aes") == 0) { in ecryptfs_code_for_cipher_string() 981 if (strcmp(cipher_name, map[i].cipher_str) == 0) { in ecryptfs_code_for_cipher_string() 1569 char *cipher_name, size_t *key_size) in ecryptfs_process_key_cipher() argument 1582 rc = ecryptfs_crypto_api_algify_cipher_name(&full_alg_name, cipher_name, in ecryptfs_process_key_cipher() 1642 ecryptfs_add_new_key_tfm(struct ecryptfs_key_tfm **key_tfm, char *cipher_name, in ecryptfs_add_new_key_tfm() argument 1658 strncpy(tmp_tfm->cipher_name, cipher_name, in ecryptfs_add_new_key_tfm() [all …]
|
D | ecryptfs_kernel.h | 332 unsigned char cipher_name[ECRYPTFS_MAX_CIPHER_NAME_SIZE + 1]; member 613 u8 ecryptfs_code_for_cipher_string(char *cipher_name, size_t key_bytes); 671 ecryptfs_add_new_key_tfm(struct ecryptfs_key_tfm **key_tfm, char *cipher_name, 675 int ecryptfs_tfm_exists(char *cipher_name, struct ecryptfs_key_tfm **key_tfm); 678 char *cipher_name);
|