commit f854cf4490a07dacaafd39ecb7591f6b11e787ad
parent 7bd4c4913935684069c62dff35d93ef6caa4a2b5
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date: Tue, 21 May 2024 20:53:28 +0200
fix order of blinded message
Diffstat:
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/src/util/donau_crypto.c b/src/util/donau_crypto.c
@@ -185,18 +185,10 @@ DONAU_donation_unit_blind (
struct DONAU_UniqueDonorIdentifierHashP *udi_hash,
struct DONAU_BlindedUniqueDonorIdentifier *budi)
{
- struct GNUNET_HashContext *hash_context;
- hash_context = GNUNET_CRYPTO_hash_context_start ();
-
- GNUNET_CRYPTO_hash_context_read (hash_context,
- udi_nonce,
- sizeof(struct
- DONAU_UniqueDonorIdentifierNonce)),
- GNUNET_CRYPTO_hash_context_read (hash_context,
- h_tax_id,
- sizeof(struct DONAU_HashDonorTaxId));
- GNUNET_CRYPTO_hash_context_finish (hash_context,
- &udi_hash->hash);
+ DONAU_unique_donor_id_hash (
+ h_tax_id,
+ udi_nonce,
+ udi_hash);
budi->blinded_message
= GNUNET_CRYPTO_message_blind_to_sign (du_pub->bsign_pub_key,