summaryrefslogtreecommitdiff
path: root/src/util/crypto.c
diff options
context:
space:
mode:
authorGian Demarmels <gian@demarmels.org>2021-12-23 10:58:03 +0100
committerGian Demarmels <gian@demarmels.org>2022-02-04 15:31:49 +0100
commit5d2157a8f6edeaf124e26561ed50c458af9df00d (patch)
tree7eba8057ef76309cd53c9797a470877bdfff86aa /src/util/crypto.c
parentf1ec1e70a02ce1672d4d663d3a23c834817359ac (diff)
downloadexchange-5d2157a8f6edeaf124e26561ed50c458af9df00d.tar.gz
exchange-5d2157a8f6edeaf124e26561ed50c458af9df00d.tar.bz2
exchange-5d2157a8f6edeaf124e26561ed50c458af9df00d.zip
sign_blinded implementation
Diffstat (limited to 'src/util/crypto.c')
-rw-r--r--src/util/crypto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c
index 9dd32d320..dd2cbfce2 100644
--- a/src/util/crypto.c
+++ b/src/util/crypto.c
@@ -212,8 +212,6 @@ TALER_blinding_secret_create (union TALER_DenominationBlindingKeyP *bs,
enum TALER_DenominationCipher cipher,
...)
{
- va_list ap;
- va_start (ap, cipher);
switch (cipher)
{
case TALER_DENOMINATION_INVALID:
@@ -227,6 +225,8 @@ TALER_blinding_secret_create (union TALER_DenominationBlindingKeyP *bs,
return;
case TALER_DENOMINATION_CS:
{
+ va_list ap;
+ va_start (ap, cipher);
struct TALER_CoinSpendPrivateKeyP *coin_priv;
struct TALER_DenominationCsPublicR *r_pub;
coin_priv = va_arg (ap, struct TALER_CoinSpendPrivateKeyP *);
@@ -235,12 +235,12 @@ TALER_blinding_secret_create (union TALER_DenominationBlindingKeyP *bs,
cs_blinding_seed_derive (coin_priv,
r_pub->r_pub,
&bs->nonce);
+ va_end (ap);
return;
}
default:
GNUNET_break (0);
}
- va_end (ap);
}