From 74234f75a41222f6a630106be75a799f4f02ec1d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 25 Oct 2021 18:37:06 +0200 Subject: -work on FTBFS --- src/util/crypto_wire.c | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) (limited to 'src/util/crypto_wire.c') diff --git a/src/util/crypto_wire.c b/src/util/crypto_wire.c index 1975b518a..616ae410e 100644 --- a/src/util/crypto_wire.c +++ b/src/util/crypto_wire.c @@ -23,28 +23,6 @@ #include "taler_signatures.h" -/** - * Compute the hash of the given wire details. The resulting - * hash is what is signed by the master key. - * - * @param payto_uri bank account - * @param[out] hc set to the hash - */ -void -TALER_exchange_wire_signature_hash (const char *payto_uri, - struct TALER_PaytoHash *hc) -{ - 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)); -} - - /** * Check the signature in @a master_sig. * @@ -64,8 +42,8 @@ TALER_exchange_wire_signature_check ( .purpose.size = htonl (sizeof (wd)) }; - TALER_exchange_wire_signature_hash (payto_uri, - &wd.h_wire_details); + TALER_payto_hash (payto_uri, + &wd.h_wire_details); return GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_MASTER_WIRE_DETAILS, &wd, &master_sig->eddsa_signature, @@ -91,8 +69,8 @@ TALER_exchange_wire_signature_make ( .purpose.size = htonl (sizeof (wd)) }; - TALER_exchange_wire_signature_hash (payto_uri, - &wd.h_wire_details); + TALER_payto_hash (payto_uri, + &wd.h_wire_details); GNUNET_CRYPTO_eddsa_sign (&master_priv->eddsa_priv, &wd, &master_sig->eddsa_signature); -- cgit v1.2.3