aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-05 23:01:21 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-05 23:01:21 +0100
commitc3e244322b6b7234c0234471b07d67bf6a210b91 (patch)
tree6b5b73eddac8662bacb74406c24a3277a0252048 /src/util/crypto.c
parenteaf9d728f54681be4e9ed3467ff9d10e71ad2b04 (diff)
more crypto refactoring
Diffstat (limited to 'src/util/crypto.c')
-rw-r--r--src/util/crypto.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c
index 7d4a431c6..ed32f31df 100644
--- a/src/util/crypto.c
+++ b/src/util/crypto.c
@@ -185,21 +185,13 @@ TALER_planchet_prepare (const struct TALER_DenominationPublicKey *dk,
GNUNET_CRYPTO_eddsa_key_get_public (&ps->coin_priv.eddsa_priv,
&coin_pub.eddsa_pub);
- // FIXME-Oec: replace with function that
- // also hashes the age vector if we have
- // one!
- TALER_coin_pub_hash (&coin_pub,
- c_hash);
- // FIXME-Gian/Lucien: this will be the bigger
- // change, as you have the extra round trip
- // => to be discussed!
- GNUNET_assert (TALER_DENOMINATION_RSA == dk->cipher);
- if (GNUNET_YES !=
- TALER_rsa_blind (c_hash,
- &ps->blinding_key.rsa_bks,
- dk->details.rsa_public_key,
- &pd->coin_ev,
- &pd->coin_ev_size))
+ if (GNUNET_OK !=
+ TALER_denom_blind (dk,
+ &ps->blinding_key,
+ &coin_pub,
+ c_hash,
+ &pd->coin_ev,
+ &pd->coin_ev_size))
{
GNUNET_break_op (0);
return GNUNET_SYSERR;