diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-10-28 01:50:26 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-10-28 01:50:26 +0200 |
commit | 9c730063ee7f622a4908f7d78f618a3e24040fb2 (patch) | |
tree | c5eb08649fc379e3d2fe80ce0314344b26f4bfdc /src/lib/exchange_api_refresh_common.c | |
parent | c381004e5dadbe528b56683bfe4ad3f29251d833 (diff) | |
download | exchange-9c730063ee7f622a4908f7d78f618a3e24040fb2.tar.xz |
new blind signature logic bug fixes
Diffstat (limited to 'src/lib/exchange_api_refresh_common.c')
-rw-r--r-- | src/lib/exchange_api_refresh_common.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/exchange_api_refresh_common.c b/src/lib/exchange_api_refresh_common.c index 2e92807b3..652581d8e 100644 --- a/src/lib/exchange_api_refresh_common.c +++ b/src/lib/exchange_api_refresh_common.c @@ -102,6 +102,13 @@ TALER_EXCHANGE_get_melt_data_ ( TALER_denom_pub_deep_copy (&fcd->fresh_pk, &rd->fresh_pks[j].key); GNUNET_assert (NULL != fcd->fresh_pk.bsign_pub_key); + if (alg_values[j].blinding_inputs->cipher != + fcd->fresh_pk.bsign_pub_key->cipher) + { + GNUNET_break (0); + TALER_EXCHANGE_free_melt_data_ (md); + return GNUNET_SYSERR; + } switch (fcd->fresh_pk.bsign_pub_key->cipher) { case GNUNET_CRYPTO_BSA_INVALID: @@ -111,13 +118,6 @@ TALER_EXCHANGE_get_melt_data_ ( case GNUNET_CRYPTO_BSA_RSA: break; case GNUNET_CRYPTO_BSA_CS: - if (alg_values[j].blinding_inputs->cipher != - fcd->fresh_pk.bsign_pub_key->cipher) - { - GNUNET_break (0); - TALER_EXCHANGE_free_melt_data_ (md); - return GNUNET_SYSERR; - } uses_cs = true; TALER_cs_refresh_nonce_derive (rms, j, |