summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-07 10:55:07 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-07 10:55:07 +0100
commit031e365814edd8bde4e4216c83f435a6915a06ab (patch)
tree107790d605e434745fb016134135de13c5d43c0b /src/util
parent2164c36f0fc9335d540a42db733131976b8d805d (diff)
downloadexchange-031e365814edd8bde4e4216c83f435a6915a06ab.tar.gz
exchange-031e365814edd8bde4e4216c83f435a6915a06ab.tar.bz2
exchange-031e365814edd8bde4e4216c83f435a6915a06ab.zip
fix FTBFS of main logic
Diffstat (limited to 'src/util')
-rw-r--r--src/util/crypto.c34
1 files changed, 22 insertions, 12 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c
index b315cd31a..b4e610ab0 100644
--- a/src/util/crypto.c
+++ b/src/util/crypto.c
@@ -147,6 +147,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,
struct TALER_PlanchetSecretsP *ps)
@@ -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)
{