From 66abbcac3f9431862ec68cf8f85781b51f2633be Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 6 Feb 2022 19:44:05 +0100 Subject: -fix more FTBFS issues --- src/util/crypto.c | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'src/util') diff --git a/src/util/crypto.c b/src/util/crypto.c index a142859aa..37810d40d 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -149,19 +149,14 @@ TALER_link_recover_transfer_secret ( void TALER_planchet_setup_refresh (const struct TALER_TransferSecretP *secret_seed, uint32_t coin_num_salt, - struct TALER_CoinSpendPrivateKeyP *coin_priv, - union TALER_DenominationBlindingKeyP *bks) + struct TALER_PlanchetSecretsP *ps) + { uint32_t be_salt = htonl (coin_num_salt); - struct - { - struct TALER_CoinSpendPrivateKeyP coin_priv; - union TALER_DenominationBlindingKeyP bks; - } out; GNUNET_assert (GNUNET_OK == - GNUNET_CRYPTO_kdf (&out, - sizeof (out), + GNUNET_CRYPTO_kdf (ps, + sizeof (*ps), &be_salt, sizeof (be_salt), secret_seed, @@ -169,8 +164,6 @@ TALER_planchet_setup_refresh (const struct TALER_TransferSecretP *secret_seed, "taler-coin-derivation", strlen ("taler-coin-derivation"), NULL, 0)); - *coin_priv = out.coin_priv; - *bks = out.bks; } @@ -215,15 +208,6 @@ TALER_cs_withdraw_nonce_derive (const struct } -void -TALER_cs_withdraw_nonce_generate (struct TALER_CsNonce *nonce) -{ - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG, - nonce, - sizeof (*nonce)); -} - - void TALER_planchet_blinding_secret_create (const struct TALER_PlanchetSecretsP *ps, -- cgit v1.2.3