From 3b1e742dde4c386b38fc77147127b4bf6119d9e5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 11 Feb 2022 18:00:20 +0100 Subject: -simplify: nonce no longer hashed --- src/util/crypto.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'src/util/crypto.c') diff --git a/src/util/crypto.c b/src/util/crypto.c index 49d5bcab..1b486d40 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -518,26 +518,8 @@ 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. - **** - UPDATE: hashing 'nonce' here kills link, as - link does not HAVE the 'rms' to derive the nonce - from! (see FIXME_OMIT in exchange_api_link.c) - *** - => either figure elegant way to resolve this, - or omit hashing nonce and ALSO skip sending - nonce in /recoup! - */ -#if FIXME_OMIT - GNUNET_CRYPTO_hash_context_read ( - hash_context, - &blinded_planchet->details.cs_blinded_planchet.nonce, - sizeof (blinded_planchet->details.cs_blinded_planchet.nonce)); -#endif + // FIXME: simplifies once 'nonce' is removed + // from TALER_BlindedCsPlanchet! GNUNET_CRYPTO_hash_context_read ( hash_context, &blinded_planchet->details.cs_blinded_planchet.c[0], -- cgit v1.2.3