diff options
author | Gian Demarmels <gian@demarmels.org> | 2021-12-27 16:21:26 +0100 |
---|---|---|
committer | Gian Demarmels <gian@demarmels.org> | 2022-02-04 15:33:09 +0100 |
commit | ca247f6f5821415b8c3437916e473785d6fd6403 (patch) | |
tree | 68327412c22cfe2a6ec387d45b8d0e2d5f841b88 /src/util/crypto.c | |
parent | 3225566c93eceb52078fbe13fc301722f349b2c0 (diff) | |
download | exchange-ca247f6f5821415b8c3437916e473785d6fd6403.tar.xz |
fixed CS signatures and cleanup/refactoring
Diffstat (limited to 'src/util/crypto.c')
-rw-r--r-- | src/util/crypto.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c index 03a438d25..1e5033a0c 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -247,7 +247,7 @@ TALER_blinding_secret_create (union TALER_DenominationBlindingKeyP *bs, /** * @brief setup a random planchet * In Case of RSA planchet, the bks gets set - * In Case of Schnorr this will be set in future + * In Case of Clause Schnorr this will be set in future */ void TALER_planchet_setup_random (struct TALER_PlanchetSecretsP *ps, @@ -307,11 +307,9 @@ TALER_planchet_prepare (const struct TALER_DenominationPublicKey *dk, { va_list ap; va_start (ap, pd); - struct TALER_WithdrawNonce *nonce; struct TALER_DenominationCsPublicR *r_pub; struct TALER_DenominationCsPublicR *blinded_r_pub; - nonce = va_arg (ap, struct TALER_WithdrawNonce *); r_pub = va_arg (ap, struct TALER_DenominationCsPublicR *); blinded_r_pub = va_arg (ap, struct TALER_DenominationCsPublicR *); @@ -322,7 +320,6 @@ TALER_planchet_prepare (const struct TALER_DenominationPublicKey *dk, &coin_pub, c_hash, &pd->blinded_planchet, - nonce, r_pub, blinded_r_pub)) { @@ -373,14 +370,14 @@ TALER_planchet_to_coin ( va_list ap; va_start (ap, coin); - struct TALER_DenominationCsPublicR *r_pub_dash; - r_pub_dash = va_arg (ap, struct TALER_DenominationCsPublicR *); + struct TALER_DenominationCsPublicR *r_pub_blind; + r_pub_blind = va_arg (ap, struct TALER_DenominationCsPublicR *); if (GNUNET_OK != TALER_denom_sig_unblind (&sig, blind_sig, &ps->blinding_key, dk, - r_pub_dash)) + r_pub_blind)) { GNUNET_break_op (0); va_end (ap); @@ -403,6 +400,7 @@ TALER_planchet_to_coin ( TALER_denom_sig_free (&sig); return GNUNET_SYSERR; } + coin->sig = sig; coin->coin_priv = ps->coin_priv; return GNUNET_OK; |