linux-stable/drivers/crypto/nx
Leonidas Da Silva Barbosa 10d87b730e crypto: nx - Fixing SHA update bug
Bug happens when a data size less than SHA block size is passed.
Since first attempt will be saved in buffer, second round attempt
get into two step to calculate op.inlen and op.outlen. The issue
resides in this step. A  wrong value of op.inlen and outlen was being
calculated.

This patch fix this eliminate the nx_sha_build_sg_list, that is
useless in SHA's algorithm context. Instead we call nx_build_sg_list
directly and pass a previous calculated max_sg_len to it.

Signed-off-by: Leonidas S. Barbosa <leosilva@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2015-04-26 14:33:19 +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-842.c of/reconfig: Always use the same structure for notifiers 2014-11-24 22:25:03 +00: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 - Moving NX-AES-ECB to be processed logic 2014-11-06 23:15:01 +08:00
nx-aes-gcm.c crypto: nx - Moving NX-AES-GCM to be processed logic 2014-11-06 23:15:02 +08:00
nx-aes-xcbc.c crypto: nx - Moving NX-AES-XCBC to be processed logic 2014-11-06 23:15:02 +08:00
nx-sha256.c crypto: nx - Fixing SHA update bug 2015-04-26 14:33:19 +08:00
nx-sha512.c crypto: nx - Fixing SHA update bug 2015-04-26 14:33:19 +08:00
nx.c crypto: nx - Fixing SHA update bug 2015-04-26 14:33:19 +08:00
nx.h crypto: nx - Fixing SHA update bug 2015-04-26 14:33:19 +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