summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorAntoine Tenart <antoine.tenart@free-electrons.com>2017-12-26 19:21:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-03 19:38:50 +0300
commitbb9eec7b301eeb178fc1305708ae8902fa507953 (patch)
tree90dd04e8d12605131bcd8d0903dd7437baf0ecf4 /crypto
parent5ca02df0160233e463b043897cd17e32d38cb70e (diff)
downloadlinux-bb9eec7b301eeb178fc1305708ae8902fa507953.tar.xz
crypto: inside-secure - fix hash when length is a multiple of a block
commit 809778e02cd45d0625439fee67688f655627bb3c upstream. This patch fixes the hash support in the SafeXcel driver when the update size is a multiple of a block size, and when a final call is made just after with a size of 0. In such cases the driver should cache the last block from the update to avoid handling 0 length data on the final call (that's a hardware limitation). Fixes: 1b44c5a60c13 ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver") Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions