crypto: starfive - Pad adata with zeroes
authorJia Jie Ho <jiajie.ho@starfivetech.com>
Mon, 20 Nov 2023 03:12:42 +0000 (11:12 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Dec 2023 10:03:26 +0000 (18:03 +0800)
commit8a0d929b53c383ba678ed65742e4a8982f71d5c0
tree19582deee299c2e8df4f446fa86f258befa1af38
parentcc03a934c5da764b369979752cd3ade3bd4f5823
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>
drivers/crypto/starfive/jh7110-aes.c