diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2021-10-25 18:02:27 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-10-27 09:23:13 +0200 |
commit | f0951d34ddd525a04bcb9daabbc55bd1ced2575e (patch) | |
tree | 03158d889a603673197f6c4a92ca9acebc10e2ce /src/util/crypto.c | |
parent | f7d08e8c2bbd6c5eaa73f339f551683c9d93ebeb (diff) |
-fix more FTBFS
Diffstat (limited to 'src/util/crypto.c')
-rw-r--r-- | src/util/crypto.c | 21 |
1 files changed, 21 insertions, 0 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 */ |