On 6/23/2025 5:24 PM, Herbert Xu wrote:
Thanks for the explanation. There is no requirement to use struct sha1_state. Just supply a custom version of the struct for the shash descriptor that includes the necessary space. IOW do the copy in the rarely used export/import functions, instead of on every hash operation.
Sorry for the late reply. Thank you for your suggestion and review. I will send an updated patch soon. Best Regards AlanSong-oc