From e8740316a79567eb23b6b75edabc1d1d77107237 Mon Sep 17 00:00:00 2001 From: Gian Demarmels Date: Sat, 5 Feb 2022 20:22:55 +0100 Subject: fixes to crypto.c changes --- src/lib/exchange_api_withdraw.c | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'src/lib/exchange_api_withdraw.c') diff --git a/src/lib/exchange_api_withdraw.c b/src/lib/exchange_api_withdraw.c index 477af5446..024cc5020 100644 --- a/src/lib/exchange_api_withdraw.c +++ b/src/lib/exchange_api_withdraw.c @@ -64,10 +64,20 @@ struct TALER_EXCHANGE_WithdrawHandle const struct TALER_ReservePrivateKeyP *reserve_priv; /** - * Secrets of the planchet. + * Seed of the planchet. */ struct TALER_PlanchetSecretsP ps; + /** + * blinding secret + */ + union DenominationBlindingKeyP bks; + + /** + * + */ + struct TALER_CoinSpendPrivateKeyP priv; + /** * Details of the planchet. */ @@ -125,8 +135,8 @@ handle_reserve_withdraw_finished ( if (GNUNET_OK != TALER_planchet_to_coin (&wh->pk.key, blind_sig, - &wh->ps, - &wh->c_hash, + &wh-> + & wh->c_hash, &wh->alg_values, &fc)) { @@ -246,15 +256,16 @@ TALER_EXCHANGE_withdraw ( switch (pk->key.cipher) { case TALER_DENOMINATION_RSA: - struct TALER_CoinSpendPrivateKeyP priv; - alg_values.cipher = TALER_DENOMINATION_RSA; + wh->alg_values.cipher = TALER_DENOMINATION_RSA; - TALER_planchet_setup_coin_priv (ps, &wh->alg_values, &priv); + TALER_planchet_setup_coin_priv (ps, &wh->alg_values, &wh->priv); + TALER_planchet_blinding_secret_create (ps, &wh->alg_values, &wh->bks); if (GNUNET_OK != TALER_planchet_prepare (&pk->key, &wh->alg_values, - ps, + &bks, + &priv, &wh->c_hash, &wh->pd)) { -- cgit v1.2.3