Lines Matching refs:sdesc
99 struct sdesc {
104 static struct sdesc *init_sdesc(struct crypto_shash *alg)
106 struct sdesc *sdesc;
110 sdesc = kmalloc(size, GFP_KERNEL);
111 if (!sdesc)
113 sdesc->shash.tfm = alg;
114 return sdesc;
121 struct sdesc *sdesc;
124 sdesc = init_sdesc(alg);
125 if (IS_ERR(sdesc)) {
126 pr_info("can't alloc sdesc\n");
127 return PTR_ERR(sdesc);
130 ret = crypto_shash_digest(&sdesc->shash, data, datalen, digest);
131 kfree(sdesc);