aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-06 19:44:05 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-06 19:44:05 +0100
commit66abbcac3f9431862ec68cf8f85781b51f2633be (patch)
tree224609279d8c1a924ebb32f2b0560bf643e3dcff /src/util/crypto.c
parente735475623c161637d0f0d291473d4bc1729d1ed (diff)
-fix more FTBFS issues
Diffstat (limited to 'src/util/crypto.c')
-rw-r--r--src/util/crypto.c24
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