From 031e365814edd8bde4e4216c83f435a6915a06ab Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 7 Feb 2022 10:55:07 +0100 Subject: fix FTBFS of main logic --- src/util/crypto.c | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) (limited to 'src/util/crypto.c') diff --git a/src/util/crypto.c b/src/util/crypto.c index b315cd31..b4e610ab 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -146,6 +146,16 @@ TALER_link_recover_transfer_secret ( } +void +TALER_planchet_setup_random ( + struct TALER_PlanchetSecretsP *ps) +{ + GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG, + ps, + sizeof (*ps)); +} + + void TALER_planchet_setup_refresh (const struct TALER_TransferSecretP *secret_seed, uint32_t coin_num_salt, @@ -167,11 +177,12 @@ TALER_planchet_setup_refresh (const struct TALER_TransferSecretP *secret_seed, } +// FIXME: bad name! void -cs_blinding_seed_derive (const struct - TALER_PlanchetSecretsP *ps, - const struct GNUNET_CRYPTO_CsRPublic r_pub[2], - struct GNUNET_CRYPTO_CsNonce *blind_seed) +cs_blinding_seed_derive ( + const struct TALER_PlanchetSecretsP *ps, + const struct GNUNET_CRYPTO_CsRPublic r_pub[2], + struct GNUNET_CRYPTO_CsNonce *blind_seed) { GNUNET_assert (GNUNET_YES == GNUNET_CRYPTO_hkdf (blind_seed, @@ -190,9 +201,9 @@ cs_blinding_seed_derive (const struct void -TALER_cs_withdraw_nonce_derive (const struct - TALER_PlanchetSecretsP *ps, - struct TALER_CsNonce *nonce) +TALER_cs_withdraw_nonce_derive ( + const struct TALER_PlanchetSecretsP *ps, + struct TALER_CsNonce *nonce) { GNUNET_assert (GNUNET_YES == GNUNET_CRYPTO_kdf (nonce, @@ -229,11 +240,10 @@ TALER_cs_refresh_nonce_derive ( void -TALER_planchet_blinding_secret_create (const struct TALER_PlanchetSecretsP *ps, - - const struct - TALER_ExchangeWithdrawValues *alg_values, - union TALER_DenominationBlindingKeyP *bks) +TALER_planchet_blinding_secret_create ( + const struct TALER_PlanchetSecretsP *ps, + const struct TALER_ExchangeWithdrawValues *alg_values, + union TALER_DenominationBlindingKeyP *bks) { switch (alg_values->cipher) { -- cgit v1.2.3