| /linux/crypto/ |
| H A D | lrw.c | 304 const char *cipher_name; in lrw_create() local 313 cipher_name = crypto_attr_alg_name(tb[1]); in lrw_create() 314 if (IS_ERR(cipher_name)) in lrw_create() 315 return PTR_ERR(cipher_name); in lrw_create() 324 cipher_name, 0, mask); in lrw_create() 325 if (err == -ENOENT && memcmp(cipher_name, "ecb(", 4)) { in lrw_create() 328 cipher_name) >= CRYPTO_MAX_ALG_NAME) in lrw_create() 354 cipher_name = alg->base.cra_name; in lrw_create() 359 if (!memcmp(cipher_name, "ecb(", 4)) { in lrw_create() 362 len = strscpy(ecb_name, cipher_name + 4, sizeof(ecb_name)); in lrw_create()
|
| H A D | xts.c | 346 const char *cipher_name; in xts_create() local 354 cipher_name = crypto_attr_alg_name(tb[1]); in xts_create() 355 if (IS_ERR(cipher_name)) in xts_create() 356 return PTR_ERR(cipher_name); in xts_create() 365 cipher_name, 0, mask); in xts_create() 366 if (err == -ENOENT && memcmp(cipher_name, "ecb(", 4)) { in xts_create() 369 cipher_name) >= CRYPTO_MAX_ALG_NAME) in xts_create() 395 cipher_name = alg->base.cra_name; in xts_create() 400 if (!memcmp(cipher_name, "ecb(", 4)) { in xts_create() 403 len = strscpy(name, cipher_name + 4, sizeof(name)); in xts_create()
|
| H A D | lskcipher.c | 487 const char *cipher_name; in lskcipher_alloc_instance_simple() local 494 cipher_name = crypto_attr_alg_name(tb[1]); in lskcipher_alloc_instance_simple() 495 if (IS_ERR(cipher_name)) in lskcipher_alloc_instance_simple() 496 return ERR_CAST(cipher_name); in lskcipher_alloc_instance_simple() 505 cipher_name, 0, mask); in lskcipher_alloc_instance_simple() 511 cipher_name) >= CRYPTO_MAX_ALG_NAME) in lskcipher_alloc_instance_simple() 549 if (strcmp(ecb_name, cipher_name) && in lskcipher_alloc_instance_simple() 552 "%s(%s)", tmpl->name, cipher_name) >= in lskcipher_alloc_instance_simple()
|
| H A D | ccm.c | 527 const char *cipher_name; in crypto_ccm_create() local 531 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_ccm_create() 532 if (IS_ERR(cipher_name)) in crypto_ccm_create() 533 return PTR_ERR(cipher_name); in crypto_ccm_create() 536 cipher_name) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create() 540 cipher_name) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create()
|
| H A D | gcm.c | 652 const char *cipher_name; in crypto_gcm_create() local 655 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_gcm_create() 656 if (IS_ERR(cipher_name)) in crypto_gcm_create() 657 return PTR_ERR(cipher_name); in crypto_gcm_create() 659 if (snprintf(ctr_name, CRYPTO_MAX_ALG_NAME, "ctr(%s)", cipher_name) >= in crypto_gcm_create()
|
| /linux/fs/ecryptfs/ |
| H A D | crypto.c | 52 char *cipher_name, in ecryptfs_crypto_api_algify_cipher_name() argument 55 int cipher_name_len = strlen(cipher_name); in ecryptfs_crypto_api_algify_cipher_name() 67 chaining_modifier, cipher_name); in ecryptfs_crypto_api_algify_cipher_name() 829 u8 ecryptfs_code_for_cipher_string(char *cipher_name, size_t key_bytes) in ecryptfs_code_for_cipher_string() argument 836 if (strcmp(cipher_name, "aes") == 0) { in ecryptfs_code_for_cipher_string() 849 if (strcmp(cipher_name, map[i].cipher_str) == 0) { in ecryptfs_code_for_cipher_string() 1440 char *cipher_name, size_t *key_size) in ecryptfs_process_key_cipher() argument 1453 rc = ecryptfs_crypto_api_algify_cipher_name(&full_alg_name, cipher_name, in ecryptfs_process_key_cipher() 1512 ecryptfs_add_new_key_tfm(struct ecryptfs_key_tfm **key_tfm, char *cipher_name, in ecryptfs_add_new_key_tfm() argument 1528 strscpy(tmp_tfm->cipher_name, cipher_name); in ecryptfs_add_new_key_tfm() [all …]
|
| H A D | ecryptfs_kernel.h | 304 unsigned char cipher_name[ECRYPTFS_MAX_CIPHER_NAME_SIZE + 1]; member 574 u8 ecryptfs_code_for_cipher_string(char *cipher_name, size_t key_bytes); 632 ecryptfs_add_new_key_tfm(struct ecryptfs_key_tfm **key_tfm, char *cipher_name, 636 int ecryptfs_tfm_exists(char *cipher_name, struct ecryptfs_key_tfm **key_tfm); 639 char *cipher_name);
|
| /linux/net/tls/ |
| H A D | tls.h | 65 char *cipher_name; member
|
| H A D | tls_device_fallback.c | 451 crypto_alloc_aead(cipher_desc->cipher_name, 0, CRYPTO_ALG_ASYNC); in tls_sw_fallback_init()
|
| H A D | tls_main.c | 85 .cipher_name = algname, \ 97 .cipher_name = algname, \
|
| H A D | tls_sw.c | 2839 *aead = crypto_alloc_aead(cipher_desc->cipher_name, 0, 0); in tls_set_sw_offload()
|