Commit 72dceb07 authored by Longfang Liu's avatar Longfang Liu Committed by Zheng Zengkai
Browse files

crypto: hisilicon/sec - Fixes AES algorithm mode parameter problem

mainline inclusion
from mainline-v5.13-rc1
commit 059c5342
category: bugfix
bugzilla: 173981
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=059c5342812c448f21bed1881a75134320e9c8a2



----------------------------------------------------------------------

The input data of the ECB (AES) algorithm needs to be aligned
with 16 bytes, and the input data of the XTS (AES) algorithm is
at least 16 bytes. Otherwise the SEC hardware will go wrong.

Signed-off-by: default avatarLongfang Liu <liulongfang@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarMingqiang Ling <lingmingqiang@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent beea2fa3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment