]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: marvell/cesa - fix the bit length endianness
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 18 Oct 2015 16:23:46 +0000 (17:23 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Oct 2015 14:10:51 +0000 (22:10 +0800)
commit9820b3f599f96e341d94d6ce9c03c8f01931d078
treec94bbfec05bdb69734cb4b5f112a1b61a7ccec12
parented7cf99b635f7711f60ef524024f874b93b266d7
crypto: marvell/cesa - fix the bit length endianness

The endianness of the bit length used in the final stage depends on the
endianness of the algorithm - md5 hashes need it to be in little endian
format, whereas SHA hashes need it in big endian format.  Use the
previously added algorithm endianness flag to control this.

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