Lines Matching defs:sdesc
1055 * @sdesc: SHASH descriptor where to put the pointer to the hash TFM
1057 * The caller has to make sure @sdesc is initialized to either NULL or
1061 cifs_alloc_hash(const char *name, struct shash_desc **sdesc)
1066 if (*sdesc)
1073 *sdesc = NULL;
1077 *sdesc = kmalloc(sizeof(struct shash_desc) + crypto_shash_descsize(alg), GFP_KERNEL);
1078 if (*sdesc == NULL) {
1084 (*sdesc)->tfm = alg;
1090 * @sdesc: Where to find the pointer to the hash TFM
1095 cifs_free_hash(struct shash_desc **sdesc)
1097 if (unlikely(!sdesc) || !*sdesc)
1100 if ((*sdesc)->tfm) {
1101 crypto_free_shash((*sdesc)->tfm);
1102 (*sdesc)->tfm = NULL;
1105 kfree_sensitive(*sdesc);
1106 *sdesc = NULL;