From: Marcelo Cerri Date: Thu, 29 Aug 2013 14:36:38 +0000 (-0300) Subject: crypto: nx - fix XCBC for zero length messages X-Git-Tag: v3.12-rc1~108^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41e3173daf4e2d2f2dcc48ae7ffc8d0c4f3ecec9;p=pandora-kernel.git crypto: nx - fix XCBC for zero length messages The NX XCBC implementation doesn't support zero length messages and because of that NX is currently returning a hard-coded hash for zero length messages. However this approach is incorrect since the hash value also depends on which key is used. This patch removes the hard-coded hash and replace it with an implementation based on the RFC 3566 using ECB. Reviewed-by: Joy Latten Signed-off-by: Marcelo Cerri Signed-off-by: Herbert Xu --- Reading git-diff-tree failed