aboutsummaryrefslogtreecommitdiff
path: root/src/util/denom.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-07 12:33:35 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-07 12:33:35 +0100
commitfb9ba5b1d2970e24643d179338b34c8915d2072d (patch)
treede1ad14127b9e213fcbf88c62097783583a1acb5 /src/util/denom.c
parent0d03f55282f5954050a66a38209a3a9aed33f884 (diff)
downloadexchange-fb9ba5b1d2970e24643d179338b34c8915d2072d.tar.xz
-rename fest
Diffstat (limited to 'src/util/denom.c')
-rw-r--r--src/util/denom.c40
1 files changed, 21 insertions, 19 deletions
diff --git a/src/util/denom.c b/src/util/denom.c
index 88bdd611f..00d7ec791 100644
--- a/src/util/denom.c
+++ b/src/util/denom.c
@@ -86,7 +86,7 @@ enum GNUNET_GenericReturnValue
TALER_denom_cs_derive_r_public (const struct TALER_CsNonce *nonce,
const struct
TALER_DenominationPrivateKey *denom_priv,
- struct TALER_DenominationCsPublicR *r_pub)
+ struct TALER_DenominationCSPublicRPairP *r_pub)
{
if (denom_priv->cipher != TALER_DENOMINATION_CS)
{
@@ -316,13 +316,14 @@ TALER_denom_priv_to_pub (const struct TALER_DenominationPrivateKey *denom_priv,
enum GNUNET_GenericReturnValue
-TALER_denom_blind (const struct TALER_DenominationPublicKey *dk,
- const union TALER_DenominationBlindingKeyP *coin_bks,
- const struct TALER_AgeHash *age_commitment_hash,
- const struct TALER_CoinSpendPublicKeyP *coin_pub,
- const struct TALER_ExchangeWithdrawValues *alg_values,
- struct TALER_CoinPubHash *c_hash,
- struct TALER_BlindedPlanchet *blinded_planchet)
+TALER_denom_blind (
+ const struct TALER_DenominationPublicKey *dk,
+ const union TALER_DenominationBlindingKeyP *coin_bks,
+ const struct TALER_AgeHash *age_commitment_hash,
+ const struct TALER_CoinSpendPublicKeyP *coin_pub,
+ const struct TALER_ExchangeWithdrawValues *alg_values,
+ struct TALER_CoinPubHash *c_hash,
+ struct TALER_BlindedPlanchet *blinded_planchet)
{
TALER_coin_pub_hash (coin_pub,
age_commitment_hash,
@@ -348,19 +349,20 @@ TALER_denom_blind (const struct TALER_DenominationPublicKey *dk,
case TALER_DENOMINATION_CS:
{
blinded_planchet->cipher = dk->cipher;
- struct TALER_DenominationCsPublicR blinded_r_pub;
+ struct TALER_DenominationCSPublicRPairP blinded_r_pub;
struct GNUNET_CRYPTO_CsBlindingSecret bs[2];
- GNUNET_CRYPTO_cs_blinding_secrets_derive (&coin_bks->nonce, bs);
-
- GNUNET_CRYPTO_cs_calc_blinded_c (bs,
- alg_values->details.cs_values.r_pub.r_pub,
- &dk->details.cs_public_key,
- &c_hash->hash,
- sizeof(struct GNUNET_HashCode),
- blinded_planchet->details.
- cs_blinded_planchet.c,
- blinded_r_pub.r_pub);
+ GNUNET_CRYPTO_cs_blinding_secrets_derive (&coin_bks->nonce,
+ bs);
+ GNUNET_CRYPTO_cs_calc_blinded_c (
+ bs,
+ alg_values->details.cs_values.r_pub_pair.r_pub,
+ &dk->details.cs_public_key,
+ &c_hash->hash,
+ sizeof(struct GNUNET_HashCode),
+ blinded_planchet->details.
+ cs_blinded_planchet.c,
+ blinded_r_pub.r_pub);
return GNUNET_OK;
}
default: