From 319ff2cde5ff664cbcc7447d4584ec9ca5a87fd0 Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Wed, 14 Aug 2024 18:51:35 +0200 Subject: [PATCH] use variable-time group addition in `_ec_pubkey_combine` --- src/secp256k1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/secp256k1.c b/src/secp256k1.c index 72d725a74e..badc362d7d 100644 --- a/src/secp256k1.c +++ b/src/secp256k1.c @@ -791,7 +791,7 @@ int secp256k1_ec_pubkey_combine(const secp256k1_context* ctx, secp256k1_pubkey * for (i = 0; i < n; i++) { ARG_CHECK(pubnonces[i] != NULL); secp256k1_pubkey_load(ctx, &Q, pubnonces[i]); - secp256k1_gej_add_ge(&Qj, &Qj, &Q); + secp256k1_gej_add_ge_var(&Qj, &Qj, &Q, NULL); } if (secp256k1_gej_is_infinity(&Qj)) { return 0;