Home
last modified time | relevance | path

Searched refs:tmp_tfm (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/security/integrity/evm/
Devm_crypto.c78 struct crypto_shash **tfm, *tmp_tfm; in init_desc() local
102 tmp_tfm = crypto_alloc_shash(algo, 0, CRYPTO_NOLOAD); in init_desc()
103 if (IS_ERR(tmp_tfm)) { in init_desc()
105 PTR_ERR(tmp_tfm)); in init_desc()
107 return ERR_CAST(tmp_tfm); in init_desc()
110 rc = crypto_shash_setkey(tmp_tfm, evmkey, evmkey_len); in init_desc()
112 crypto_free_shash(tmp_tfm); in init_desc()
117 *tfm = tmp_tfm; in init_desc()
/linux-6.6.21/fs/ecryptfs/
Dcrypto.c1596 struct ecryptfs_key_tfm *tmp_tfm; in ecryptfs_add_new_key_tfm() local
1601 tmp_tfm = kmem_cache_alloc(ecryptfs_key_tfm_cache, GFP_KERNEL); in ecryptfs_add_new_key_tfm()
1603 (*key_tfm) = tmp_tfm; in ecryptfs_add_new_key_tfm()
1604 if (!tmp_tfm) { in ecryptfs_add_new_key_tfm()
1608 mutex_init(&tmp_tfm->key_tfm_mutex); in ecryptfs_add_new_key_tfm()
1609 strncpy(tmp_tfm->cipher_name, cipher_name, in ecryptfs_add_new_key_tfm()
1611 tmp_tfm->cipher_name[ECRYPTFS_MAX_CIPHER_NAME_SIZE] = '\0'; in ecryptfs_add_new_key_tfm()
1612 tmp_tfm->key_size = key_size; in ecryptfs_add_new_key_tfm()
1613 rc = ecryptfs_process_key_cipher(&tmp_tfm->key_tfm, in ecryptfs_add_new_key_tfm()
1614 tmp_tfm->cipher_name, in ecryptfs_add_new_key_tfm()
[all …]