On Mon, Oct 13, 2025 at 04:05:14PM +0200, Daniel Kiper wrote:
> On Tue, Sep 02, 2025 at 03:17:55PM +0800, Gary Lin via Grub-devel wrote:
> > Add argon2_blake2b_512_hash_buffers() as the replacement of
> > _gcry_digest_spec_blake2b_512.hash_buffers().
> 
> Why?
> 
'struct gcry_md_spec' in GRUB skips 'hash_buffers()' (to avoid some
compilation issues I guess). However, the Argon2 implementation requires
'hash_buffers()' for Blake2b 512. Instead of enabling 'hash_buffers()'
for all digest algorithms defined in crypto.h, I decide to implement the
function in kdf.c. 'argon2_blake2b_512_hash_buffers()' is based on
'_gcry_blake2##bs##_##dbits##_hash_buffers' in blake2.c.

> And subject of the patch names different function than one is created here...
> 
'_gcry_digest_spec_blake2b_512.hash_buffers()' is a bit too long for the
title, so I shortened the name.

Gary Lin

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

Reply via email to