Home
last modified time | relevance | path

Searched refs:key_tfm (Results 1 – 3 of 3) sorted by relevance

/linux/fs/ecryptfs/
H A Dcrypto.c1520 ecryptfs_process_key_cipher(struct crypto_skcipher **key_tfm, in ecryptfs_process_key_cipher() argument
1527 *key_tfm = NULL; in ecryptfs_process_key_cipher()
1538 *key_tfm = crypto_alloc_skcipher(full_alg_name, 0, CRYPTO_ALG_ASYNC); in ecryptfs_process_key_cipher()
1539 if (IS_ERR(*key_tfm)) { in ecryptfs_process_key_cipher()
1540 rc = PTR_ERR(*key_tfm); in ecryptfs_process_key_cipher()
1545 crypto_skcipher_set_flags(*key_tfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS); in ecryptfs_process_key_cipher()
1547 *key_size = crypto_skcipher_max_keysize(*key_tfm); in ecryptfs_process_key_cipher()
1549 rc = crypto_skcipher_setkey(*key_tfm, dummy_key, *key_size); in ecryptfs_process_key_cipher()
1579 struct ecryptfs_key_tfm *key_tfm, *key_tfm_tmp; in ecryptfs_destroy_crypto() local
1582 list_for_each_entry_safe(key_tfm, key_tfm_tmp, &key_tfm_list, in ecryptfs_destroy_crypto()
[all …]
H A Decryptfs_kernel.h311 struct crypto_skcipher *key_tfm; member
642 ecryptfs_add_new_key_tfm(struct ecryptfs_key_tfm **key_tfm, char *cipher_name,
646 int ecryptfs_tfm_exists(char *cipher_name, struct ecryptfs_key_tfm **key_tfm);
/linux/drivers/nvme/common/
H A Dauth.c241 struct crypto_shash *key_tfm; in nvme_auth_transform_key() local
263 key_tfm = crypto_alloc_shash(hmac_name, 0, 0); in nvme_auth_transform_key()
264 if (IS_ERR(key_tfm)) in nvme_auth_transform_key()
265 return ERR_CAST(key_tfm); in nvme_auth_transform_key()
268 crypto_shash_descsize(key_tfm), in nvme_auth_transform_key()
275 key_len = crypto_shash_digestsize(key_tfm); in nvme_auth_transform_key()
282 shash->tfm = key_tfm; in nvme_auth_transform_key()
283 ret = crypto_shash_setkey(key_tfm, key->key, key->len); in nvme_auth_transform_key()
300 crypto_free_shash(key_tfm); in nvme_auth_transform_key()
309 crypto_free_shash(key_tfm); in nvme_auth_transform_key()