Searched refs:cipher_name (Results 1 - 5 of 5) sorted by relevance
/linux-4.4.14/crypto/ |
H A D | ccm.c | 508 const char *cipher_name) crypto_ccm_create_common() 524 cipher = crypto_alg_mod_lookup(cipher_name, CRYPTO_ALG_TYPE_CIPHER, crypto_ccm_create_common() 610 const char *cipher_name; crypto_ccm_create() local 614 cipher_name = crypto_attr_alg_name(tb[1]); crypto_ccm_create() 615 if (IS_ERR(cipher_name)) crypto_ccm_create() 616 return PTR_ERR(cipher_name); crypto_ccm_create() 619 cipher_name) >= CRYPTO_MAX_ALG_NAME) crypto_ccm_create() 622 if (snprintf(full_name, CRYPTO_MAX_ALG_NAME, "ccm(%s)", cipher_name) >= crypto_ccm_create() 627 cipher_name); crypto_ccm_create() 640 const char *cipher_name; crypto_ccm_base_create() local 647 cipher_name = crypto_attr_alg_name(tb[2]); crypto_ccm_base_create() 648 if (IS_ERR(cipher_name)) crypto_ccm_base_create() 649 return PTR_ERR(cipher_name); crypto_ccm_base_create() 652 ctr_name, cipher_name) >= CRYPTO_MAX_ALG_NAME) crypto_ccm_base_create() 656 cipher_name); crypto_ccm_base_create() 504 crypto_ccm_create_common(struct crypto_template *tmpl, struct rtattr **tb, const char *full_name, const char *ctr_name, const char *cipher_name) crypto_ccm_create_common() argument
|
H A D | ctr.c | 342 const char *cipher_name; crypto_rfc3686_alloc() local 352 cipher_name = crypto_attr_alg_name(tb[1]); crypto_rfc3686_alloc() 353 if (IS_ERR(cipher_name)) crypto_rfc3686_alloc() 354 return ERR_CAST(cipher_name); crypto_rfc3686_alloc() 363 err = crypto_grab_skcipher(spawn, cipher_name, 0, crypto_rfc3686_alloc()
|
H A D | gcm.c | 728 const char *cipher_name; crypto_gcm_create() local 732 cipher_name = crypto_attr_alg_name(tb[1]); crypto_gcm_create() 733 if (IS_ERR(cipher_name)) crypto_gcm_create() 734 return PTR_ERR(cipher_name); crypto_gcm_create() 736 if (snprintf(ctr_name, CRYPTO_MAX_ALG_NAME, "ctr(%s)", cipher_name) >= crypto_gcm_create() 740 if (snprintf(full_name, CRYPTO_MAX_ALG_NAME, "gcm(%s)", cipher_name) >= crypto_gcm_create()
|
/linux-4.4.14/fs/ecryptfs/ |
H A D | crypto.c | 139 char *cipher_name, ecryptfs_crypto_api_algify_cipher_name() 142 int cipher_name_len = strlen(cipher_name); ecryptfs_crypto_api_algify_cipher_name() 154 chaining_modifier, cipher_name); ecryptfs_crypto_api_algify_cipher_name() 979 * @cipher_name: The string alias for the cipher 984 u8 ecryptfs_code_for_cipher_string(char *cipher_name, size_t key_bytes) ecryptfs_code_for_cipher_string() argument 991 if (strcmp(cipher_name, "aes") == 0) { ecryptfs_code_for_cipher_string() 1004 if (strcmp(cipher_name, map[i].cipher_str) == 0) { ecryptfs_code_for_cipher_string() 1586 * @cipher_name: Name of the cipher 1595 char *cipher_name, size_t *key_size) ecryptfs_process_key_cipher() 1608 rc = ecryptfs_crypto_api_algify_cipher_name(&full_alg_name, cipher_name, ecryptfs_process_key_cipher() 1672 ecryptfs_add_new_key_tfm(struct ecryptfs_key_tfm **key_tfm, char *cipher_name, ecryptfs_add_new_key_tfm() argument 1690 strncpy(tmp_tfm->cipher_name, cipher_name, ecryptfs_add_new_key_tfm() 1692 tmp_tfm->cipher_name[ECRYPTFS_MAX_CIPHER_NAME_SIZE] = '\0'; ecryptfs_add_new_key_tfm() 1695 tmp_tfm->cipher_name, ecryptfs_add_new_key_tfm() 1700 tmp_tfm->cipher_name, rc); ecryptfs_add_new_key_tfm() 1712 * ecryptfs_tfm_exists - Search for existing tfm for cipher_name. 1713 * @cipher_name: the name of the cipher to search for 1716 * Searches for cached key_tfm matching @cipher_name 1721 int ecryptfs_tfm_exists(char *cipher_name, struct ecryptfs_key_tfm **key_tfm) ecryptfs_tfm_exists() argument 1728 if (strcmp(tmp_key_tfm->cipher_name, cipher_name) == 0) { ecryptfs_tfm_exists() 1744 * @cipher_name: the name of the cipher to search for and/or add 1746 * Sets pointers to @tfm & @tfm_mutex matching @cipher_name. 1752 char *cipher_name) ecryptfs_get_tfm_and_mutex_for_cipher_name() 1761 if (!ecryptfs_tfm_exists(cipher_name, &key_tfm)) { ecryptfs_get_tfm_and_mutex_for_cipher_name() 1762 rc = ecryptfs_add_new_key_tfm(&key_tfm, cipher_name, 0); ecryptfs_get_tfm_and_mutex_for_cipher_name() 138 ecryptfs_crypto_api_algify_cipher_name(char **algified_name, char *cipher_name, char *chaining_modifier) ecryptfs_crypto_api_algify_cipher_name() argument 1594 ecryptfs_process_key_cipher(struct crypto_blkcipher **key_tfm, char *cipher_name, size_t *key_size) ecryptfs_process_key_cipher() argument 1750 ecryptfs_get_tfm_and_mutex_for_cipher_name(struct crypto_blkcipher **tfm, struct mutex **tfm_mutex, char *cipher_name) ecryptfs_get_tfm_and_mutex_for_cipher_name() argument
|
H A D | ecryptfs_kernel.h | 304 * @cipher_name: String name for the cipher for this TFM 316 unsigned char cipher_name[ECRYPTFS_MAX_CIPHER_NAME_SIZE + 1]; member in struct:ecryptfs_key_tfm 599 u8 ecryptfs_code_for_cipher_string(char *cipher_name, size_t key_bytes); 657 ecryptfs_add_new_key_tfm(struct ecryptfs_key_tfm **key_tfm, char *cipher_name, 661 int ecryptfs_tfm_exists(char *cipher_name, struct ecryptfs_key_tfm **key_tfm); 664 char *cipher_name);
|
Completed in 150 milliseconds