From 5d2157a8f6edeaf124e26561ed50c458af9df00d Mon Sep 17 00:00:00 2001 From: Gian Demarmels Date: Thu, 23 Dec 2021 10:58:03 +0100 Subject: sign_blinded implementation --- src/util/crypto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/util/crypto.c') 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); } -- cgit v1.2.3