exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 3b6b167a96b8ebf398a316b1b0ccbe1041bf159c
parent 79b15a5351d05cbbc4fee77739523c940adb12ae
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 13 Aug 2026 18:56:08 +0200

fix off-by-one assert

Diffstat:
Msrc/util/crypto.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/crypto.c b/src/util/crypto.c @@ -324,7 +324,7 @@ TALER_cs_derive_nonces_from_seed ( const uint32_t indices[static num], struct GNUNET_CRYPTO_CsSessionNonce nonces[static num]) { - GNUNET_assert (TALER_MAX_COINS > num); + GNUNET_assert (TALER_MAX_COINS >= num); for (size_t i = 0; i < num; i++) TALER_cs_nonce_derive_indexed ( @@ -343,7 +343,7 @@ TALER_cs_derive_only_cs_blind_nonces_from_seed ( const uint32_t indices[static num], union GNUNET_CRYPTO_BlindSessionNonce nonces[static num]) { - GNUNET_assert (TALER_MAX_COINS > num); + GNUNET_assert (TALER_MAX_COINS >= num); for (size_t i = 0; i < num; i++) TALER_cs_nonce_derive_indexed (