]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: starfive - Align rsa input data to 32-bit
authorJia Jie Ho <jiajie.ho@starfivetech.com>
Wed, 26 Jun 2024 01:40:42 +0000 (09:40 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 6 Jul 2024 00:20:00 +0000 (10:20 +1000)
commit6aad7019f697ab0bed98eba737d19bd7f67713de
tree545a0f5cc7c6a07ef67d9fa5c459cdcd92782cb2
parentf0622894c59458fceb33c4197462bc2006f3fc6b
crypto: starfive - Align rsa input data to 32-bit

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>
drivers/crypto/starfive/jh7110-cryp.h
drivers/crypto/starfive/jh7110-rsa.c