]> git.ipfire.org Git - thirdparty/grub.git/commit
crypto: Update crypto.h for libgcrypt KDF functions
authorGary Lin <glin@suse.com>
Wed, 15 Oct 2025 03:00:17 +0000 (11:00 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 21 Oct 2025 11:46:16 +0000 (13:46 +0200)
commitbc94dfd5416407acab367217a415953cdde37207
tree75763aa6d7cf0e876bb059a6da5625ca249fbe94
parent5b81f490c421a6a17df591c0e02b7313cfe1bbf6
crypto: Update crypto.h for libgcrypt KDF functions

This commit introduces the necessary changes to crypto.h in preparation
for implementing Argon2 support via the generic KDF functions, _gcry_kdf_*():
  - add new GPG error types required by kdf.c,
  - declare _gcry_digest_spec_blake2b_512 to enable BLAKE2b-512 digest calculations,
  - define the gcrypt KDF algorithm IDs for Argon2,
  - add the prototypes of _gcry_kdf_*() functions.

Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/crypto.h