Thread (5 messages) 5 messages, 2 authors, 2024-06-12

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

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2024-06-12 07:47:08
Also in: lkml

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 [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help