diff options
author | Antoine Ténart <antoine.tenart@free-electrons.com> | 2017-12-26 19:21:17 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-01-05 10:43:06 +0300 |
commit | 809778e02cd45d0625439fee67688f655627bb3c (patch) | |
tree | 9b6ac57c9b59da9ba0572c803d89480c936ab2d6 /crypto/api.c | |
parent | c957f8b3e2e54b29f53ef69decc87bbc858c9b58 (diff) | |
download | linux-809778e02cd45d0625439fee67688f655627bb3c.tar.xz |
crypto: inside-secure - fix hash when length is a multiple of a block
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).
Cc: stable@vger.kernel.org
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>
Diffstat (limited to 'crypto/api.c')
0 files changed, 0 insertions, 0 deletions