diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-10-27 11:40:12 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-10-27 11:40:12 +0200 |
commit | 3900531e0d1a6644bebe19e451fef907100d77b6 (patch) | |
tree | ab4fb15bd85a64fec9c02bf330a487200623b308 /src/util | |
parent | 7ac57acb18e4b4644afab2adc61e1b0c6607464c (diff) | |
download | exchange-3900531e0d1a6644bebe19e451fef907100d77b6.tar.xz |
eliminate HKDF when hashing paytos
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/payto.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/util/payto.c b/src/util/payto.c index bc8370c40..26872f1ee 100644 --- a/src/util/payto.c +++ b/src/util/payto.c @@ -260,22 +260,7 @@ void TALER_payto_hash (const char *payto, struct TALER_PaytoHash *h_payto) { - /* FIXME: 0.8 had TWO WAYS to hash a payto! - one for the exchange, the other - for merchants (i.e. reserve closing). - I think we should unify... */ -#if OLD_EXCHANGE_WAY - GNUNET_assert (GNUNET_YES == - GNUNET_CRYPTO_kdf (hc, - sizeof (*hc), - payto_uri, - strlen (payto_uri) + 1, - "exchange-wire-signature", - strlen ("exchange-wire-signature"), - NULL, 0)); -#else GNUNET_CRYPTO_hash (payto, strlen (payto) + 1, &h_payto->hash); -#endif } |