Files
Ashish Sharma 2b96dd8eeb fix(bignum): make constant-time prime sieve opt-in via config macro
mbedtls 3.6.7 replaced the trial-division small-factor test in prime
generation with a constant-time GCD against the 1380-bit small-primes
product (upstream commit 7a29052238). The GCD runs a fixed
(A_limbs + N_limbs) * biL iterations per prime candidate, making RSA
key generation ~5x slower on 64-bit hosts and ~10x slower on ESP chips
(RSA-2048: seconds -> ~86 s on ESP32-S3), and its non-yielding software
loop starves the FreeRTOS idle task, tripping the task watchdog.

Restore the pre-3.6.7 variable-time trial division and keep the
constant-time implementation available behind the new
MBEDTLS_MPI_PRIME_SIEVE_VARIABLE_TIME macro (defined by ESP-IDF's
esp_config.h unless CONFIG_MBEDTLS_CONSTANT_TIME_PRIME_GEN is enabled).
Builds without the macro keep upstream behavior unchanged.
2026-07-14 16:14:31 +08:00
..
2026-06-26 21:18:01 +01:00
2024-01-30 16:28:09 +01:00
2026-06-02 13:50:32 +01:00
2026-06-26 15:32:38 +01:00
2024-01-17 11:06:31 +00:00
2026-04-02 09:42:05 +02:00
2025-08-26 11:33:12 +02:00
2026-05-21 12:08:44 +02:00
2026-06-26 21:18:01 +01:00
2025-06-06 14:35:07 +01:00
2026-06-26 21:18:01 +01:00
2025-06-04 10:06:26 +01:00
2026-03-03 09:53:08 +01:00
2025-10-23 14:43:52 +01:00
2025-05-13 11:53:31 +02:00
2024-08-06 13:13:05 +02:00
2023-11-21 17:09:46 +00:00
2025-08-26 11:34:45 +02:00
2025-08-29 10:46:52 +02:00
2026-06-26 21:18:01 +01:00