commit 45b70c364ced8a38ae9d575ed111172488650215
parent 85122e899a895e5327f8e37ac0811a9ad87168b4
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sun, 16 Aug 2026 09:00:06 +0200
use corredt sizeof()
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/util/crypto.c b/src/util/crypto.c
@@ -715,7 +715,7 @@ TALER_coin_pub_hash (const struct TALER_CoinSpendPublicKeyP *coin_pub,
{
/* No age commitment was set */
GNUNET_CRYPTO_hash (&coin_pub->eddsa_pub,
- sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey),
+ sizeof (coin_pub->eddsa_pub),
&coin_h->hash);
}
else
@@ -729,7 +729,7 @@ TALER_coin_pub_hash (const struct TALER_CoinSpendPublicKeyP *coin_pub,
GNUNET_CRYPTO_hash_context_read (
hash_context,
&coin_pub->eddsa_pub,
- sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey));
+ sizeof(coin_pub->eddsa_pub));
GNUNET_CRYPTO_hash_context_read (
hash_context,