gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] 27/130: eliminate HKDF when hashing paytos


From: gnunet
Subject: [taler-exchange] 27/130: eliminate HKDF when hashing paytos
Date: Wed, 17 Nov 2021 12:24:35 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit 3900531e0d1a6644bebe19e451fef907100d77b6
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Oct 27 11:40:12 2021 +0200

    eliminate HKDF when hashing paytos
---
 contrib/gana     |  2 +-
 src/util/payto.c | 15 ---------------
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/contrib/gana b/contrib/gana
index 17555514..8c7d9be4 160000
--- a/contrib/gana
+++ b/contrib/gana
@@ -1 +1 @@
-Subproject commit 17555514bd2866e0d45b23e4a1c198415205c8f2
+Subproject commit 8c7d9be40ba627348da3e01b91b4f1d3cc78631f
diff --git a/src/util/payto.c b/src/util/payto.c
index bc8370c4..26872f1e 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
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]