Re: [PATCH 2/3 v5] crypto: ux500: Add driver for HASH hardware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 18, 2012 at 03:59:03PM +0200, Andreas WESTIN wrote:
> 
> 
> On 2012-04-18 09:49, Herbert Xu wrote:
> >
> >Hmm, if this buffer is written to by the update function, then
> >this doesn't work because the buffer resides in the tfm which
> >can be used by multiple entities simultaneously.
> >
> >All writable data must reside in the request, not the tfm.
> 
> I'm looking into it, I assume you mean "req->base.data" ?

No, have a look at the helper ahash_request_ctx.  You need to
state how much memory you need via reqsize.

Cheers,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
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 linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux