diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-10 20:15:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-10 20:15:17 +0100 |
commit | d58d89dcab91823dff208d230e1b1b3a742810bd (patch) | |
tree | c206aa35a61b5e782dd44220d94fe52f8d535dc6 /src/util/crypto.c | |
parent | ed5ef2b5f7d1fc5e87d47a2023733604f1f04278 (diff) | |
download | exchange-d58d89dcab91823dff208d230e1b1b3a742810bd.tar.xz |
-get recoup/refresh to pass
Diffstat (limited to 'src/util/crypto.c')
-rw-r--r-- | src/util/crypto.c | 9 |
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); |