Re: [PATCH v3 2/3] crypto: brcm: Add Broadcom SPU driver

2017-02-02 Thread Rob Rice
Herbert, > On Feb 2, 2017, at 9:05 AM, Herbert Xu wrote: > > On Wed, Jan 25, 2017 at 11:44:48AM -0500, Rob Rice wrote: >> >> +static int ahash_export(struct ahash_request *req, void *out) >> +{ >> +const struct iproc_reqctx_s *rctx = ahash_request_ctx(req); >>

Re: [PATCH v3 2/3] crypto: brcm: Add Broadcom SPU driver

2017-02-02 Thread Herbert Xu
On Wed, Jan 25, 2017 at 11:44:48AM -0500, Rob Rice wrote: > > +static int ahash_export(struct ahash_request *req, void *out) > +{ > + const struct iproc_reqctx_s *rctx = ahash_request_ctx(req); > + > + memcpy(out, rctx, offsetof(struct iproc_reqctx_s, msg_buf)); > + return 0; > +} The