Searched refs:tmp_tfm (Results 1 – 2 of 2) sorted by relevance
78 struct crypto_shash **tfm, *tmp_tfm; in init_desc() local102 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()
1596 struct ecryptfs_key_tfm *tmp_tfm; in ecryptfs_add_new_key_tfm() local1601 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 strscpy(tmp_tfm->cipher_name, cipher_name); in ecryptfs_add_new_key_tfm()1610 tmp_tfm->key_size = key_size; in ecryptfs_add_new_key_tfm()1611 rc = ecryptfs_process_key_cipher(&tmp_tfm->key_tfm, in ecryptfs_add_new_key_tfm()1612 tmp_tfm->cipher_name, in ecryptfs_add_new_key_tfm()1613 &tmp_tfm->key_size); in ecryptfs_add_new_key_tfm()[all …]