Searched refs:hash_tfm (Results 1 – 7 of 7) sorted by relevance
/fs/ubifs/ |
D | auth.c | 34 return crypto_shash_tfm_digest(c->hash_tfm, node, le32_to_cpu(ch->len), in __ubifs_node_calc_hash() 71 SHASH_DESC_ON_STACK(hash_desc, c->hash_tfm); in ubifs_prepare_auth_node() 73 hash_desc->tfm = c->hash_tfm; in ubifs_prepare_auth_node() 123 return ubifs_get_desc(c, c->hash_tfm); in __ubifs_hash_get_desc() 302 c->hash_tfm = crypto_alloc_shash(c->auth_hash_name, 0, 0); in ubifs_init_authentication() 303 if (IS_ERR(c->hash_tfm)) { in ubifs_init_authentication() 304 err = PTR_ERR(c->hash_tfm); in ubifs_init_authentication() 310 c->hash_len = crypto_shash_digestsize(c->hash_tfm); in ubifs_init_authentication() 352 crypto_free_shash(c->hash_tfm); in ubifs_init_authentication() 372 crypto_free_shash(c->hash_tfm); in __ubifs_exit_authentication()
|
D | replay.c | 567 SHASH_DESC_ON_STACK(hash_desc, c->hash_tfm); in authenticate_sleb_hash() 569 hash_desc->tfm = c->hash_tfm; in authenticate_sleb_hash()
|
D | master.c | 71 crypto_shash_tfm_digest(c->hash_tfm, node + sizeof(struct ubifs_ch), in mst_node_check_hash()
|
D | ubifs.h | 1499 struct crypto_shash *hash_tfm; member
|
/fs/ecryptfs/ |
D | keystore.c | 606 struct crypto_shash *hash_tfm; member 744 s->hash_tfm = crypto_alloc_shash(ECRYPTFS_TAG_70_DIGEST, 0, 0); in ecryptfs_write_tag_70_packet() 745 if (IS_ERR(s->hash_tfm)) { in ecryptfs_write_tag_70_packet() 746 rc = PTR_ERR(s->hash_tfm); in ecryptfs_write_tag_70_packet() 754 crypto_shash_descsize(s->hash_tfm), GFP_KERNEL); in ecryptfs_write_tag_70_packet() 760 s->hash_desc->tfm = s->hash_tfm; in ecryptfs_write_tag_70_packet() 842 crypto_free_shash(s->hash_tfm); in ecryptfs_write_tag_70_packet()
|
D | crypto.c | 65 int rc = crypto_shash_tfm_digest(crypt_stat->hash_tfm, src, len, dst); in ecryptfs_calculate_md5() 173 crypt_stat->hash_tfm = tfm; in ecryptfs_init_crypt_stat() 190 crypto_free_shash(crypt_stat->hash_tfm); in ecryptfs_destroy_crypt_stat()
|
D | ecryptfs_kernel.h | 240 struct crypto_shash *hash_tfm; /* Crypto context for generating member
|