[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 01/02: - fix invalid memory access
From: |
gnunet |
Subject: |
[gnunet] 01/02: - fix invalid memory access |
Date: |
Mon, 15 Jul 2024 23:02:11 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 99d023b80fa77bae604b7b3da2654074308f291b
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Mon Jul 15 23:01:43 2024 +0200
- fix invalid memory access
---
src/lib/util/crypto_ecc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/util/crypto_ecc.c b/src/lib/util/crypto_ecc.c
index aa5fa455c..3dd1f50e0 100644
--- a/src/lib/util/crypto_ecc.c
+++ b/src/lib/util/crypto_ecc.c
@@ -786,7 +786,7 @@ GNUNET_CRYPTO_eddsa_ecdh_kdf (const struct
GNUNET_CRYPTO_EddsaPrivateKey *priv,
GNUNET_CRYPTO_hkdf_extract (&prk, NULL, 0, ikm, sizeof ikm);
// to get 512 bits, we call expand once
- GNUNET_CRYPTO_hkdf_expand(&key_material, sizeof *key_material, &prk,
+ GNUNET_CRYPTO_hkdf_expand(key_material, sizeof *key_material, &prk,
"gnunet-ed25519-x25519-ecdh",
strlen ("gnunet-ed25519-x25519-ecdh"),
NULL, 0);
@@ -822,7 +822,7 @@ GNUNET_CRYPTO_ecdh_eddsa_kdf (const struct
GNUNET_CRYPTO_EcdhePrivateKey *priv,
GNUNET_CRYPTO_hkdf_extract (&prk, NULL, 0, ikm, sizeof ikm);
// to get 512 bits, we call expand once
- GNUNET_CRYPTO_hkdf_expand(&key_material, sizeof *key_material, &prk,
+ GNUNET_CRYPTO_hkdf_expand(key_material, sizeof *key_material, &prk,
"gnunet-ed25519-x25519-ecdh",
strlen ("gnunet-ed25519-x25519-ecdh"),
NULL, 0);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.