]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: marvell/cesa - keep creq->state in CPU endian format at all times
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 18 Oct 2015 16:23:35 +0000 (17:23 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Oct 2015 14:10:50 +0000 (22:10 +0800)
commitfa1e33dbe7bf6a16b5a07fa1c50dc55678b17dff
tree2d58744ec66599b088df01a0c4e17756f7e0c392
parentd39a03704258fe495e9f2e5881208f670a3dc9b2
crypto: marvell/cesa - keep creq->state in CPU endian format at all times

Currently, we read/write the state in CPU endian, but on the final
request, we convert its endian according to the requested algorithm.
(md5 is little endian, SHA are big endian.)

Always keep creq->state in CPU native endian format, and perform the
necessary conversion when copying the hash to the result.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/cesa.h
drivers/crypto/marvell/hash.c