crypto: mv_cesa - move digest state initialisation to a better place
authorPhil Sutter <phil.sutter@viprinet.com>
Thu, 5 May 2011 13:29:04 +0000 (15:29 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 May 2011 05:06:20 +0000 (15:06 +1000)
commit8652348754a1f538daa1eab248e5c9c4c3600204
tree9812a8205990fe5ec13f8d84d7db7fd81589e53d
parentcc8d35057ce7ae2f88cc65be0f839316c4641332
crypto: mv_cesa - move digest state initialisation to a better place

On one hand, the digest state registers need to be set only when
actually using the crypto engine. On the other hand, there is a check
for ctx->first_hash in mv_process_hash_current() already, so use that.

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mv_cesa.c