crypto: algif_skcipher - Use chunksize instead of blocksize
mainline inclusion from mainline-v5.5-rc1 commit 5b0fe955 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6F049 CVE: NA -------------------------------- When algif_skcipher does a partial operation it always process data that is a multiple of blocksize. However, for algorithms such as CTR this is wrong because even though it can process any number of bytes overall, the partial block must come at the very end and not in the middle. This is exactly what chunksize is meant to describe so this patch changes blocksize to chunksize. Fixes: 8ff59090 ("crypto: algif_skcipher - User-space...") Signed-off-by:Herbert Xu <herbert@gondor.apana.org.au> Acked-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au> Conflicts: include/crypto/internal/skcipher.h include/crypto/skcipher.h Signed-off-by:
Lu Jialin <lujialin4@huawei.com> Reviewed-by:
Wang Weiyang <wangweiyang2@huawei.com> Reviewed-by:
guozihua <guozihua@huawei.com> Signed-off-by:
Yongqiang Liu <liuyongqiang13@huawei.com>
Loading
Please sign in to comment