linux/drivers/crypto/nx
Leonidas S. Barbosa 01a5aa08ef crypto: nx - Moving limit and bound logic in CTR and fix IV vector
The previous limits were estimated locally in a single step
basead on bound values, however it was not correct since
when given certain scatterlist the function nx_build_sg_lists
was consuming more sg entries than allocated causing a
memory corruption and crashes.

- This patch removes the old logic and replaces it into nx_sg_build_lists
in order to build a correct nx_sg list using the correct sg_max limit
and bounds.

IV vector was not set correctly to zero causing ctr crash in tcrypt tests.

- Fixed setting IV vector  bits to zero.

Signed-off-by: Leonidas S. Barbosa <leosilva@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2014-11-06 23:15:01 +08:00
..
Kconfig powerpc/crypto: add 842 hardware compression driver 2012-08-01 17:47:56 +08:00
Makefile powerpc/crypto: add 842 hardware compression driver 2012-08-01 17:47:56 +08:00
nx_csbcpb.h
nx_debugfs.c powerpc/crypto: debugfs routines and docs for the nx device driver 2012-05-16 15:05:45 +10:00
nx-842.c The branch contains the following device tree changes the v3.17 merge 2014-08-14 09:53:39 -06:00
nx-aes-cbc.c crypto: nx - Moving NX-AES-CBC to be processed logic 2014-11-06 23:15:00 +08:00
nx-aes-ccm.c crypto: nx - Moving NX-AES-CCM to be processed logic and sg_list bounds 2014-11-06 23:15:00 +08:00
nx-aes-ctr.c crypto: nx - Moving limit and bound logic in CTR and fix IV vector 2014-11-06 23:15:01 +08: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