crypto: omap-sham - uses digest buffer in request context
authorDmitry Kasatkin <dmitry.kasatkin@nokia.com>
Fri, 19 Nov 2010 14:04:22 +0000 (16:04 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 27 Nov 2010 08:37:16 +0000 (16:37 +0800)
commit0c3cf4cc9abd854dcc6488719348a75b8f328c54
tree3883a2763b471a05b39890715bb9bafa8e2410a9
parent0d258efb6a58fe047197c3b9cff8746bb176d58a
crypto: omap-sham - uses digest buffer in request context

Currently driver storred digest results in req->results
provided by the client. But some clients do not set it
until final() call. It leads to crash.
Changed to use internal buffer to store temporary digest results.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c