From: Marcelo Cerri Date: Thu, 29 Aug 2013 14:36:40 +0000 (-0300) Subject: crypto: nx - fix SHA-2 for chunks bigger than block size X-Git-Tag: v3.12-rc1~108^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=069fa0453f9dc86fd97dd5b3f5fda4724ed5ff69;p=pandora-kernel.git 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 Signed-off-by: Marcelo Cerri Signed-off-by: Herbert Xu --- Reading git-diff-tree failed