commit 581699c3ba6ddf5b6d338725037db7c4f6b41fe4
parent 9b190b8c3e1381e71315df482a08e0530b84631c
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 16 Mar 2026 23:38:01 +0100
adapt to revised GNUNET_process() API one more time
Diffstat:
2 files changed, 22 insertions(+), 27 deletions(-)
diff --git a/src/json/json.c b/src/json/json.c
@@ -109,14 +109,12 @@ dump_and_hash (const json_t *json,
else
{
if (GNUNET_YES !=
- GNUNET_CRYPTO_kdf (hc,
- sizeof (*hc),
- salt,
- strlen (salt) + 1,
- wire_enc,
- len,
- NULL,
- 0))
+ GNUNET_CRYPTO_hkdf_gnunet (hc,
+ sizeof (*hc),
+ salt,
+ strlen (salt) + 1,
+ wire_enc,
+ len))
{
GNUNET_break (0);
free (wire_enc);
diff --git a/src/util/donau_crypto.c b/src/util/donau_crypto.c
@@ -244,27 +244,24 @@ DONAU_budi_secret_create (
return;
case GNUNET_CRYPTO_BSA_RSA:
GNUNET_assert (GNUNET_YES ==
- GNUNET_CRYPTO_kdf (&bks->rsa_bks,
- sizeof (bks->rsa_bks),
- "bks",
- strlen ("bks"),
- ps,
- sizeof(*ps),
- NULL,
- 0));
+ GNUNET_CRYPTO_hkdf_gnunet (&bks->rsa_bks,
+ sizeof (bks->rsa_bks),
+ "bks",
+ strlen ("bks"),
+ ps,
+ sizeof(*ps)));
return;
case GNUNET_CRYPTO_BSA_CS:
- GNUNET_assert (GNUNET_YES ==
- GNUNET_CRYPTO_kdf (&bks->nonce,
- sizeof (bks->nonce),
- "bseed",
- strlen ("bseed"),
- ps,
- sizeof(*ps),
- &bi->details.cs_values,
- sizeof(bi->details.cs_values),
- NULL,
- 0));
+ GNUNET_assert (
+ GNUNET_YES ==
+ GNUNET_CRYPTO_hkdf_gnunet (
+ &bks->nonce,
+ sizeof (bks->nonce),
+ "bseed",
+ strlen ("bseed"),
+ ps,
+ sizeof(*ps),
+ GNUNET_CRYPTO_kdf_arg_auto (&bi->details.cs_values)));
return;
}
GNUNET_assert (0);