On Thu, Aug 14, 2025 at 02:32:40PM +0800, Gary Lin via Grub-devel wrote:
> This patch series addresses performance issues in the PBKDF2
> implementation, which previously caused significant delays when
> unlocking encrypted partitions. The code has been optimized to eliminate
> redundant memory allocations and unnecessary hash operations.
>
> These changes result in a substantial improvement: in local testing, the
> disk unlocking time was reduced from 15 seconds to 4 seconds.
>
> Credit to Steffen Winterfeldt for providing a custom PBKDF2 implementation
> that helped identify these bottlenecks.
>
> Gary Lin (2):
>   lib/crypto: Introduce new HMAC functions to reuse buffers
>   lib/pbkdf2: Optimize PBKDF2 by reusing HMAC handle

For both patches Reviewed-by: Daniel Kiper <[email protected]>...

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to