Re: [PATCH] crypto: starfive - Align rsa input data to 32-bit

From: Herbert Xu
Date: Wed Jun 12 2024 - 03:47:18 EST


On Wed, Jun 12, 2024 at 02:58:18AM +0000, JiaJie Ho wrote:
>
> Can I fix the buffer length of the pre-allocated buffer to 256 bytes instead of
> the current variable length buffer?
>
> - u8 rsa_data[] __aligned(sizeof(u32));
> + u8 rsa_data[STARFIVE_RSA_MAX_KEYSZ];
>
> That's the maximum length supported by the hardware and
> most applications now use rsa2048 and above.

I think that's fine.

Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt