Searched refs:key_tfm (Results 1 – 3 of 3) sorted by relevance
| /linux/fs/ecryptfs/ |
| H A D | crypto.c | 1451 ecryptfs_process_key_cipher(struct crypto_skcipher **key_tfm, in ecryptfs_process_key_cipher() argument 1458 *key_tfm = NULL; in ecryptfs_process_key_cipher() 1469 *key_tfm = crypto_alloc_skcipher(full_alg_name, 0, CRYPTO_ALG_ASYNC); in ecryptfs_process_key_cipher() 1470 if (IS_ERR(*key_tfm)) { in ecryptfs_process_key_cipher() 1471 rc = PTR_ERR(*key_tfm); in ecryptfs_process_key_cipher() 1476 crypto_skcipher_set_flags(*key_tfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS); in ecryptfs_process_key_cipher() 1478 *key_size = crypto_skcipher_max_keysize(*key_tfm); in ecryptfs_process_key_cipher() 1480 rc = crypto_skcipher_setkey(*key_tfm, dummy_key, *key_size); in ecryptfs_process_key_cipher() 1510 struct ecryptfs_key_tfm *key_tfm, *key_tfm_tmp; in ecryptfs_destroy_crypto() local 1513 list_for_each_entry_safe(key_tfm, key_tfm_tmp, &key_tfm_list, in ecryptfs_destroy_crypto() [all …]
|
| H A D | ecryptfs_kernel.h | 299 struct crypto_skcipher *key_tfm; member 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);
|
| /linux/drivers/nvme/common/ |
| H A D | auth.c | 244 struct crypto_shash *key_tfm; in nvme_auth_transform_key() local 245 SHASH_DESC_ON_STACK(shash, key_tfm); in nvme_auth_transform_key() 266 key_tfm = crypto_alloc_shash(hmac_name, 0, 0); in nvme_auth_transform_key() 267 if (IS_ERR(key_tfm)) in nvme_auth_transform_key() 268 return ERR_CAST(key_tfm); in nvme_auth_transform_key() 270 key_len = crypto_shash_digestsize(key_tfm); in nvme_auth_transform_key() 277 shash->tfm = key_tfm; in nvme_auth_transform_key() 278 ret = crypto_shash_setkey(key_tfm, key->key, key->len); in nvme_auth_transform_key() 294 crypto_free_shash(key_tfm); in nvme_auth_transform_key() 301 crypto_free_shash(key_tfm); in nvme_auth_transform_key()
|