Searched refs:tmp_tfm (Results 1 – 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/security/integrity/evm/ |
D | evm_crypto.c | 76 struct crypto_shash **tfm, *tmp_tfm = NULL; in init_desc() local 100 tmp_tfm = crypto_alloc_shash(algo, 0, CRYPTO_NOLOAD); in init_desc() 101 if (IS_ERR(tmp_tfm)) { in init_desc() 103 PTR_ERR(tmp_tfm)); in init_desc() 105 return ERR_CAST(tmp_tfm); in init_desc() 108 rc = crypto_shash_setkey(tmp_tfm, evmkey, evmkey_len); in init_desc() 110 crypto_free_shash(tmp_tfm); in init_desc() 115 *tfm = tmp_tfm; in init_desc() 122 crypto_free_shash(tmp_tfm); in init_desc() 130 crypto_free_shash(tmp_tfm); in init_desc()
|
/kernel/linux/linux-5.10/fs/ecryptfs/ |
D | crypto.c | 1624 struct ecryptfs_key_tfm *tmp_tfm; in ecryptfs_add_new_key_tfm() local 1629 tmp_tfm = kmem_cache_alloc(ecryptfs_key_tfm_cache, GFP_KERNEL); in ecryptfs_add_new_key_tfm() 1631 (*key_tfm) = tmp_tfm; in ecryptfs_add_new_key_tfm() 1632 if (!tmp_tfm) { in ecryptfs_add_new_key_tfm() 1636 mutex_init(&tmp_tfm->key_tfm_mutex); in ecryptfs_add_new_key_tfm() 1637 strncpy(tmp_tfm->cipher_name, cipher_name, in ecryptfs_add_new_key_tfm() 1639 tmp_tfm->cipher_name[ECRYPTFS_MAX_CIPHER_NAME_SIZE] = '\0'; in ecryptfs_add_new_key_tfm() 1640 tmp_tfm->key_size = key_size; in ecryptfs_add_new_key_tfm() 1641 rc = ecryptfs_process_key_cipher(&tmp_tfm->key_tfm, in ecryptfs_add_new_key_tfm() 1642 tmp_tfm->cipher_name, in ecryptfs_add_new_key_tfm() [all …]
|