Lines Matching defs:tmpbuf
2096 u8 *tmpbuf;
2115 tmpbuf = kmalloc(req->nbytes, gfp);
2116 if (!tmpbuf)
2119 if (sg_copy_to_buffer(req->src, nents, tmpbuf, req->nbytes) !=
2121 kfree(tmpbuf);
2126 ret = crypto_shash_update(ctx->shash, tmpbuf, req->nbytes);
2127 kfree(tmpbuf);
2190 u8 *tmpbuf;
2211 tmpbuf = kmalloc(req->nbytes, gfp);
2212 if (!tmpbuf) {
2217 if (sg_copy_to_buffer(req->src, nents, tmpbuf, req->nbytes) !=
2224 ret = crypto_shash_finup(ctx->shash, tmpbuf, req->nbytes,
2231 kfree(tmpbuf);