From f3fb7c29e69d38ee77d6214cf001f8e18fa00f2b Mon Sep 17 00:00:00 2001 From: Gian Demarmels Date: Fri, 17 Dec 2021 14:35:10 +0100 Subject: added CS data structures, implemented CS keypair --- src/testing/testing_api_cmd_insert_deposit.c | 10 ++++------ src/testing/testing_api_cmd_withdraw.c | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'src/testing') diff --git a/src/testing/testing_api_cmd_insert_deposit.c b/src/testing/testing_api_cmd_insert_deposit.c index d45bd0c67..738c4b67d 100644 --- a/src/testing/testing_api_cmd_insert_deposit.c +++ b/src/testing/testing_api_cmd_insert_deposit.c @@ -203,21 +203,19 @@ insert_deposit_run (void *cls, struct TALER_BlindedDenominationSignature bds; union TALER_DenominationBlindingKeyP bks; - TALER_blinding_secret_create (&bks); + TALER_blinding_secret_create (&bks, TALER_DENOMINATION_RSA); GNUNET_assert (GNUNET_OK == TALER_denom_blind (&dpk, &bks, NULL, /* FIXME-Oec */ &deposit.coin.coin_pub, &c_hash, - &pd.coin_ev, - &pd.coin_ev_size)); + &pd.blinded_planchet)); GNUNET_assert (GNUNET_OK == TALER_denom_sign_blinded (&bds, &denom_priv, - pd.coin_ev, - pd.coin_ev_size)); - GNUNET_free (pd.coin_ev); + &pd.blinded_planchet)); + GNUNET_free (pd.blinded_planchet.details.rsa_blinded_planchet.blinded_msg); GNUNET_assert (GNUNET_OK == TALER_denom_sig_unblind (&deposit.coin.denom_sig, &bds, diff --git a/src/testing/testing_api_cmd_withdraw.c b/src/testing/testing_api_cmd_withdraw.c index 8e6cba704..e87f42c34 100644 --- a/src/testing/testing_api_cmd_withdraw.c +++ b/src/testing/testing_api_cmd_withdraw.c @@ -388,7 +388,7 @@ withdraw_run (void *cls, &ws->reserve_pub); if (NULL == ws->reuse_coin_key_ref) { - TALER_planchet_setup_random (&ws->ps); + TALER_planchet_setup_random (&ws->ps, TALER_DENOMINATION_RSA); } else { @@ -409,7 +409,7 @@ withdraw_run (void *cls, TALER_TESTING_get_trait_coin_priv (cref, index, &coin_priv)); - TALER_planchet_setup_random (&ws->ps); + TALER_planchet_setup_random (&ws->ps, TALER_DENOMINATION_RSA); ws->ps.coin_priv = *coin_priv; } if (NULL == ws->pk) -- cgit v1.2.3