diff options
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); |