From d58d89dcab91823dff208d230e1b1b3a742810bd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 10 Feb 2022 20:15:17 +0100 Subject: -get recoup/refresh to pass --- src/util/crypto.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/util') diff --git a/src/util/crypto.c b/src/util/crypto.c index 5a7dbfeee..447805bfe 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -507,10 +507,19 @@ TALER_coin_ev_hash (const struct TALER_BlindedPlanchet *blinded_planchet, blinded_planchet->details.rsa_blinded_planchet.blinded_msg_size); break; case TALER_DENOMINATION_CS: + /* NOTE: it is not obvious that we need to hash the + nonce here; if we omit this, we could skip sending + the nonce in the /recoup protocol. OTOH, there is + certainly no further harm (beyond the extra + bytes send on /recoup) from including it. */ GNUNET_CRYPTO_hash_context_read ( hash_context, &blinded_planchet->details.cs_blinded_planchet.nonce, sizeof (blinded_planchet->details.cs_blinded_planchet.nonce)); + GNUNET_CRYPTO_hash_context_read ( + hash_context, + &blinded_planchet->details.cs_blinded_planchet.c[0], + sizeof (struct GNUNET_CRYPTO_CsC) * 2); break; default: GNUNET_break (0); -- cgit v1.2.3