]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2aedfb93985b7c43e97ac9ca5ecfe14fff465a29
tree9812a8205990fe5ec13f8d84d7db7fd81589e53d
parent0021edcb820116d9c14a67d9f23d4e040015c246
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