From: Herbert Xu Subject: Re: [PATCH v3 02/16] crypto: add a new driver for Marvell's CESA Date: Mon, 25 May 2015 15:58:12 +0800 Message-ID: <20150525075812.GA28689@gondor.apana.org.au> References: <1432301642-11470-1-git-send-email-boris.brezillon@free-electrons.com> <1432301642-11470-3-git-send-email-boris.brezillon@free-electrons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "David S. Miller" , linux-crypto-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Arnaud Ebalard , Thomas Petazzoni , Gregory CLEMENT , Jason Cooper , Sebastian Hesselbarth , Andrew Lunn , Tawfik Bayouk , Lior Amsalem , Nadav Haklai , Eran Ben-Avi , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Boris Brezillon Return-path: Content-Disposition: inline In-Reply-To: <1432301642-11470-3-git-send-email-boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-crypto.vger.kernel.org On Fri, May 22, 2015 at 03:33:48PM +0200, Boris Brezillon wrote: > > +static int mv_cesa_sha1_export(struct ahash_request *req, void *out) > +{ > + struct sha1_state *out_state = out; > + struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); > + struct mv_cesa_ahash_req *creq = ahash_request_ctx(req); > + unsigned int digsize = crypto_ahash_digestsize(ahash); > + > + out_state->count = creq->len; > + memcpy(out_state->state, creq->state, digsize); > + memset(out_state->buffer, 0, sizeof(out_state->buffer)); > + if (creq->cache) > + memcpy(out_state->buffer, creq->cache, creq->cache_ptr); > + > + return 0; > +} Where is the import function? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html