summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-10 20:15:17 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-10 20:15:17 +0100
commitd58d89dcab91823dff208d230e1b1b3a742810bd (patch)
treec206aa35a61b5e782dd44220d94fe52f8d535dc6 /src/util
parented5ef2b5f7d1fc5e87d47a2023733604f1f04278 (diff)
downloadexchange-d58d89dcab91823dff208d230e1b1b3a742810bd.tar.gz
exchange-d58d89dcab91823dff208d230e1b1b3a742810bd.tar.bz2
exchange-d58d89dcab91823dff208d230e1b1b3a742810bd.zip
-get recoup/refresh to pass
Diffstat (limited to 'src/util')
-rw-r--r--src/util/crypto.c9
1 files changed, 9 insertions, 0 deletions
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);