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