aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2021-10-25 18:02:27 +0200
committerChristian Grothoff <christian@grothoff.org>2021-10-27 09:23:13 +0200
commitf0951d34ddd525a04bcb9daabbc55bd1ced2575e (patch)
tree03158d889a603673197f6c4a92ca9acebc10e2ce /src/util
parentf7d08e8c2bbd6c5eaa73f339f551683c9d93ebeb (diff)
-fix more FTBFS
Diffstat (limited to 'src/util')
-rw-r--r--src/util/crypto.c21
-rw-r--r--src/util/crypto_wire.c2
2 files changed, 22 insertions, 1 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c
index 5d1f0d08e..c7b459450 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 */
diff --git a/src/util/crypto_wire.c b/src/util/crypto_wire.c
index 8560aaf30..1975b518a 100644
--- a/src/util/crypto_wire.c
+++ b/src/util/crypto_wire.c
@@ -19,7 +19,7 @@
* @author Christian Grothoff <christian@grothoff.org>
*/
#include "platform.h"
-#include "taler_crypto_lib.h"
+#include "taler_util.h"
#include "taler_signatures.h"