Loading
crypto: starfive - Align rsa input data to 32-bit
stable inclusion from stable-v6.6.51 commit 02b3f8860963e458377ae42ae74b61df29c04bc5 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAYRVR Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=02b3f8860963e458377ae42ae74b61df29c04bc5 -------------------------------- [ Upstream commit 6aad7019f697ab0bed98eba737d19bd7f67713de ] Hardware expects RSA input plain/ciphertext to be 32-bit aligned. Set fixed length for preallocated buffer to the maximum supported keysize of the hardware and shift input text accordingly. Signed-off-by:Jia Jie Ho <jiajie.ho@starfivetech.com> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Wen Zhiwei <wenzhiwei@kylinos.cn>