diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-11 18:00:20 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-11 18:00:20 +0100 |
commit | 3b1e742dde4c386b38fc77147127b4bf6119d9e5 (patch) | |
tree | 02eb79861294590a5182d2f9393dc81757204b66 /src/util | |
parent | 9f77398fe25bb041e58ddd4c994062493275e615 (diff) | |
download | exchange-3b1e742dde4c386b38fc77147127b4bf6119d9e5.tar.xz |
-simplify: nonce no longer hashed
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/crypto.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c index 49d5bcab5..1b486d404 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], |