aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-12 16:44:28 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-12 16:44:28 +0200
commit00350bc228af8f79df56df13aa10e5f86de5a5a5 (patch)
treededbcc779a7bc63fb1152ff350d6f59a7c4fcd05 /src/util
parentd28f18f2403d623d29ff4c9e69d3b99f7d4208b0 (diff)
remove c_hash from planchet detail where it does not logically belong
Diffstat (limited to 'src/util')
-rw-r--r--src/util/crypto.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c
index 99171ebc7..b75cd8b4e 100644
--- a/src/util/crypto.c
+++ b/src/util/crypto.c
@@ -226,6 +226,7 @@ TALER_planchet_setup_random (struct TALER_PlanchetSecretsP *ps)
*
* @param dk denomination key for the coin to be created
* @param ps secret planchet internals (for #TALER_planchet_to_coin)
+ * @param[out] c_hash set to the hash of the public key of the coin (needed later)
* @param[out] pd set to the planchet detail for TALER_MERCHANT_tip_pickup() and
* other withdraw operations
* @return #GNUNET_OK on success
@@ -233,6 +234,7 @@ TALER_planchet_setup_random (struct TALER_PlanchetSecretsP *ps)
int
TALER_planchet_prepare (const struct TALER_DenominationPublicKey *dk,
const struct TALER_PlanchetSecretsP *ps,
+ struct GNUNET_HashCode *c_hash,
struct TALER_PlanchetDetail *pd)
{
struct TALER_CoinSpendPublicKeyP coin_pub;
@@ -241,9 +243,9 @@ TALER_planchet_prepare (const struct TALER_DenominationPublicKey *dk,
&coin_pub.eddsa_pub);
GNUNET_CRYPTO_hash (&coin_pub.eddsa_pub,
sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey),
- &pd->c_hash);
+ c_hash);
if (GNUNET_YES !=
- GNUNET_CRYPTO_rsa_blind (&pd->c_hash,
+ GNUNET_CRYPTO_rsa_blind (c_hash,
&ps->blinding_key.bks,
dk->rsa_public_key,
&pd->coin_ev,