summaryrefslogtreecommitdiff
path: root/block/blk-lib.c
diff options
context:
space:
mode:
authorThara Gopinath <thara.gopinath@linaro.org>2020-11-19 10:52:31 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2020-11-27 17:13:40 +1100
commit1148a9654b5a69611d33e14719251c6ec20f5f2c (patch)
treef5584f4c249dc0bd1558942cea112b78961f9e69 /block/blk-lib.c
parent8cbc3448214a9d4534f8381ec23ef5add0ae8d91 (diff)
crypto: qce - Fix SHA result buffer corruption issues
Partial hash was being copied into the final result buffer without the entire message block processed. Depending on how the end user processes this result buffer, errors vary from result buffer corruption to result buffer poisoing. Fix this issue by ensuring that only the final hash value is copied into the result buffer. Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'block/blk-lib.c')
0 files changed, 0 insertions, 0 deletions