From f0951d34ddd525a04bcb9daabbc55bd1ced2575e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 25 Oct 2021 18:02:27 +0200 Subject: -fix more FTBFS --- src/util/crypto.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/util/crypto.c') diff --git a/src/util/crypto.c b/src/util/crypto.c index 5d1f0d08..c7b45945 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -339,4 +339,25 @@ TALER_rsa_unblind (const struct GNUNET_CRYPTO_RsaSignature *sig, } +void +TALER_coin_ev_hash (const void *coin_ev, + size_t coin_ev_size, + struct TALER_BlindedCoinHash *bch) +{ + GNUNET_CRYPTO_hash (coin_ev, + coin_ev_size, + &bch->hash); +} + + +void +TALER_coin_pub_hash (const struct TALER_CoinSpendPublicKeyP *coin_pub, + struct TALER_CoinPubHash *coin_h) +{ + GNUNET_CRYPTO_hash (&coin_pub->eddsa_pub, + sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey), + &coin_h->hash); +} + + /* end of crypto.c */ -- cgit v1.2.3