mbox series

[v3,0/2] crypto: starfive: Fixes for RSA

Message ID 20240626014043.1194521-1-jiajie.ho@starfivetech.com (mailing list archive)
Headers show
Series crypto: starfive: Fixes for RSA | expand

Message

Jia Jie Ho June 26, 2024, 1:40 a.m. UTC
This series adds handling for 32-bit unaligned input text and a fix
for a missing pointer assignment in the driver.

v2->v3:
- Retain u32 aligned attribute for preallocated buffer.
- Replace sizeof(u32) with 4 to simplify calculation.
- Removed unrelated changes from patch 1.
- Move nent changes into patch 2.

v1->v2:
- Build the extra space required for shifting into reqsize.

Jia Jie Ho (2):
  crypto: starfive - Align rsa input data to 32-bit
  crypto: starfive - Fix nent assignment in rsa dec

 drivers/crypto/starfive/jh7110-cryp.h |  4 ++--
 drivers/crypto/starfive/jh7110-rsa.c  | 15 +++++++++------
 2 files changed, 11 insertions(+), 8 deletions(-)

Comments

Herbert Xu July 6, 2024, 12:52 a.m. UTC | #1
On Wed, Jun 26, 2024 at 09:40:41AM +0800, Jia Jie Ho wrote:
> This series adds handling for 32-bit unaligned input text and a fix
> for a missing pointer assignment in the driver.
> 
> v2->v3:
> - Retain u32 aligned attribute for preallocated buffer.
> - Replace sizeof(u32) with 4 to simplify calculation.
> - Removed unrelated changes from patch 1.
> - Move nent changes into patch 2.
> 
> v1->v2:
> - Build the extra space required for shifting into reqsize.
> 
> Jia Jie Ho (2):
>   crypto: starfive - Align rsa input data to 32-bit
>   crypto: starfive - Fix nent assignment in rsa dec
> 
>  drivers/crypto/starfive/jh7110-cryp.h |  4 ++--
>  drivers/crypto/starfive/jh7110-rsa.c  | 15 +++++++++------
>  2 files changed, 11 insertions(+), 8 deletions(-)
> 
> -- 
> 2.43.0

All applied.  Thanks.