diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/crypto.c | 21 | ||||
-rw-r--r-- | src/util/crypto_wire.c | 2 |
2 files changed, 22 insertions, 1 deletions
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 */ diff --git a/src/util/crypto_wire.c b/src/util/crypto_wire.c index 8560aaf3..1975b518 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" |