diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-11-13 19:52:09 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-11-13 19:52:09 +0100 |
commit | de2fdc2a9a12acfc15d631f3406c2ff1cffa12ec (patch) | |
tree | 1144330d717221f3e157429e023a91a9770bae18 /src/exchange/taler-exchange-httpd_keys.c | |
parent | 18aba0abbb427a2e0e76ae88f95fef493e74032d (diff) | |
download | exchange-de2fdc2a9a12acfc15d631f3406c2ff1cffa12ec.tar.gz exchange-de2fdc2a9a12acfc15d631f3406c2ff1cffa12ec.tar.bz2 exchange-de2fdc2a9a12acfc15d631f3406c2ff1cffa12ec.zip |
refactor CS derive API in preparation for batch API
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keys.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keys.c | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c index 52aa9015c..cf20985c5 100644 --- a/src/exchange/taler-exchange-httpd_keys.c +++ b/src/exchange/taler-exchange-httpd_keys.c @@ -2874,10 +2874,15 @@ TEH_keys_denomination_cs_r_pub_melt ( return TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE; } - return TALER_CRYPTO_helper_cs_r_derive_melt (ksh->helpers->csdh, - &hd->h_details.h_cs, - nonce, - r_pub); + { + struct TALER_CRYPTO_CsDeriveRequest cdr = { + .h_cs = &hd->h_details.h_cs, + .nonce = nonce + }; + return TALER_CRYPTO_helper_cs_r_derive_melt (ksh->helpers->csdh, + &cdr, + r_pub); + } } @@ -2905,11 +2910,16 @@ TEH_keys_denomination_cs_r_pub_withdraw ( { return TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE; } + { + struct TALER_CRYPTO_CsDeriveRequest cdr = { + .h_cs = &hd->h_details.h_cs, + .nonce = nonce + }; - return TALER_CRYPTO_helper_cs_r_derive_withdraw (ksh->helpers->csdh, - &hd->h_details.h_cs, - nonce, - r_pub); + return TALER_CRYPTO_helper_cs_r_derive_withdraw (ksh->helpers->csdh, + &cdr, + r_pub); + } } |