Lines Matching defs:sdesc
1018 * @sdesc: SHASH descriptor where to put the pointer to the hash TFM
1020 * The caller has to make sure @sdesc is initialized to either NULL or
1024 cifs_alloc_hash(const char *name, struct shash_desc **sdesc)
1029 if (*sdesc)
1036 *sdesc = NULL;
1040 *sdesc = kmalloc(sizeof(struct shash_desc) + crypto_shash_descsize(alg), GFP_KERNEL);
1041 if (*sdesc == NULL) {
1047 (*sdesc)->tfm = alg;
1053 * @sdesc: Where to find the pointer to the hash TFM
1058 cifs_free_hash(struct shash_desc **sdesc)
1060 if (unlikely(!sdesc) || !*sdesc)
1063 if ((*sdesc)->tfm) {
1064 crypto_free_shash((*sdesc)->tfm);
1065 (*sdesc)->tfm = NULL;
1068 kfree_sensitive(*sdesc);
1069 *sdesc = NULL;