summaryrefslogtreecommitdiff
path: root/drivers/crypto/omap-aes-gcm.c
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2019-11-05 17:00:55 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-12-11 11:36:58 +0300
commit2b352489d0d6398f6d47383b48ed3527f7d078f8 (patch)
tree29e8631495bdf15f22f00350e603a83277e23742 /drivers/crypto/omap-aes-gcm.c
parent891dcbbb0e464da7313daf910956c3d78eb5d2d5 (diff)
downloadlinux-2b352489d0d6398f6d47383b48ed3527f7d078f8.tar.xz
crypto: omap-sham - fix buffer handling for split test cases
Current buffer handling logic fails in a case where the buffer contains existing data from previous update which is divisible by block size. This results in a block size of data to be left missing from the sg list going out to the hw accelerator, ending up in stalling the crypto accelerator driver (the last request never completes fully due to missing data.) Fix this by passing the total size of the data instead of the data size of current request, and also parsing the buffer contents within the prepare request handling. Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/omap-aes-gcm.c')
0 files changed, 0 insertions, 0 deletions