Lines Matching refs:sdesc
121 struct sdesc {
126 static struct sdesc *init_sdesc(struct crypto_shash *alg)
128 struct sdesc *sdesc;
132 sdesc = kmalloc(size, GFP_KERNEL);
133 if (!sdesc)
135 sdesc->shash.tfm = alg;
136 sdesc->shash.flags = 0x0;
137 return sdesc;
144 struct sdesc *sdesc;
147 sdesc = init_sdesc(alg);
148 if (IS_ERR(sdesc)) {
149 pr_info("can't alloc sdesc\n");
150 return PTR_ERR(sdesc);
153 ret = crypto_shash_digest(&sdesc->shash, data, datalen, digest);
154 kfree(sdesc);