diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-06 19:44:05 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-06 19:44:05 +0100 |
commit | 66abbcac3f9431862ec68cf8f85781b51f2633be (patch) | |
tree | 224609279d8c1a924ebb32f2b0560bf643e3dcff /src/util/crypto.c | |
parent | e735475623c161637d0f0d291473d4bc1729d1ed (diff) |
-fix more FTBFS issues
Diffstat (limited to 'src/util/crypto.c')
-rw-r--r-- | src/util/crypto.c | 24 |
1 files changed, 4 insertions, 20 deletions
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; } @@ -216,15 +209,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, const struct |