linux/drivers/crypto/nx
Marcelo Cerri 069fa0453f crypto: nx - fix SHA-2 for chunks bigger than block size
Each call to the co-processor, with exception of the last call, needs to
send data that is multiple of block size. As consequence, any remaining
data is kept in the internal NX context.

This patch fixes a bug in the driver that causes it to save incorrect
data into the context when data is bigger than the block size.

Reviewed-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2013-09-02 20:32:56 +10:00
..
Kconfig
Makefile
nx_csbcpb.h
nx_debugfs.c
nx-842.c
nx-aes-cbc.c crypto: nx - fix limits to sg lists for AES-CBC 2013-09-02 20:32:53 +10:00
nx-aes-ccm.c crypto: nx - fix limits to sg lists for AES-CCM 2013-09-02 20:32:54 +10:00
nx-aes-ctr.c crypto: nx - fix limits to sg lists for AES-CTR 2013-09-02 20:32:53 +10:00
nx-aes-ecb.c crypto: nx - fix limits to sg lists for AES-ECB 2013-09-02 20:32:52 +10:00
nx-aes-gcm.c crypto: nx - fix GCM for zero length messages 2013-09-02 20:32:55 +10:00
nx-aes-xcbc.c crypto: nx - fix XCBC for zero length messages 2013-09-02 20:32:55 +10:00
nx-sha256.c crypto: nx - fix SHA-2 for chunks bigger than block size 2013-09-02 20:32:56 +10:00
nx-sha512.c crypto: nx - fix SHA-2 for chunks bigger than block size 2013-09-02 20:32:56 +10:00
nx.c crypto: nx - add offset to nx_build_sg_lists() 2013-09-02 20:32:52 +10:00
nx.h crypto: nx - add offset to nx_build_sg_lists() 2013-09-02 20:32:52 +10:00