Lines Matching refs:sdesc
1019 * @sdesc: SHASH descriptor where to put the pointer to the hash TFM
1021 * The caller has to make sure @sdesc is initialized to either NULL or
1025 cifs_alloc_hash(const char *name, struct shash_desc **sdesc)
1030 if (*sdesc)
1037 *sdesc = NULL;
1041 *sdesc = kmalloc(sizeof(struct shash_desc) + crypto_shash_descsize(alg), GFP_KERNEL);
1042 if (*sdesc == NULL) {
1048 (*sdesc)->tfm = alg;
1054 * @sdesc: Where to find the pointer to the hash TFM
1059 cifs_free_hash(struct shash_desc **sdesc)
1061 if (unlikely(!sdesc) || !*sdesc)
1064 if ((*sdesc)->tfm) {
1065 crypto_free_shash((*sdesc)->tfm);
1066 (*sdesc)->tfm = NULL;
1069 kfree_sensitive(*sdesc);
1070 *sdesc = NULL;