Lines Matching refs:shash
1078 struct crypto_shash **shash, struct sdesc **sdesc) in cifs_alloc_hash() argument
1086 *shash = crypto_alloc_shash(name, 0, 0); in cifs_alloc_hash()
1087 if (IS_ERR(*shash)) { in cifs_alloc_hash()
1089 rc = PTR_ERR(*shash); in cifs_alloc_hash()
1090 *shash = NULL; in cifs_alloc_hash()
1095 size = sizeof(struct shash_desc) + crypto_shash_descsize(*shash); in cifs_alloc_hash()
1099 crypto_free_shash(*shash); in cifs_alloc_hash()
1100 *shash = NULL; in cifs_alloc_hash()
1104 (*sdesc)->shash.tfm = *shash; in cifs_alloc_hash()
1116 cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc) in cifs_free_hash() argument
1120 if (*shash) in cifs_free_hash()
1121 crypto_free_shash(*shash); in cifs_free_hash()
1122 *shash = NULL; in cifs_free_hash()