crypto: starfive - Pad adata with zeroes
authorJia Jie Ho <jiajie.ho@starfivetech.com>
Mon, 20 Nov 2023 03:12:42 +0000 (11:12 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 19 Feb 2024 00:14:00 +0000 (09:14 +0900)
commit8262b1a27c72f720e62c081b8d595da0f96f730e
tree7dc4d10eb8882bf9994b0c353e89925ca6b63d0b
parentf99cb5d7d279d1e949358a3faf4c0e804720975f
crypto: starfive - Pad adata with zeroes

Aad requires padding with zeroes up to 15 bytes in some cases. This
patch increases the allocated buffer size for aad and prevents the
driver accessing uninitialized memory region.

v1->v2: Specify reason for alloc size change in descriptions.

Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from mainline commit 8a0d929b53c383ba678ed65742e4a8982f71d5c0)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I4d74dc9ce42516838cee07d039a3f13f457e5336
drivers/crypto/starfive/jh7110-aes.c