From c42376cf400b59006fa9ed0a195c014d10c7eca1 Mon Sep 17 00:00:00 2001 From: Gian Demarmels Date: Sat, 5 Feb 2022 00:32:53 +0100 Subject: crypto implementation --- src/lib/exchange_api_withdraw.c | 6 ++++++ 1 file changed, 6 insertions(+) (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 7b851b492..477af5446 100644 --- a/src/lib/exchange_api_withdraw.c +++ b/src/lib/exchange_api_withdraw.c @@ -242,9 +242,15 @@ TALER_EXCHANGE_withdraw ( TALER_denom_pub_deep_copy (&wh->pk.key, &pk->key); + switch (pk->key.cipher) { case TALER_DENOMINATION_RSA: + struct TALER_CoinSpendPrivateKeyP priv; + alg_values.cipher = TALER_DENOMINATION_RSA; + + TALER_planchet_setup_coin_priv (ps, &wh->alg_values, &priv); + if (GNUNET_OK != TALER_planchet_prepare (&pk->key, &wh->alg_values, -- cgit v1.2.3