Estimating the Decoding Failure Rate of Binary Regular Codes Using Iterative Decoding
Alessandro Annechini, Alessandro Barenghi, Gerardo Pelosi
TL;DR
This work tackles the challenging problem of estimating the decoding failure rate (DFR) for a two-iteration parallel bit-flipping decoder applied to $(v,w)$-regular LDPC/MDPC codes used in post-quantum cryptosystems. The authors develop a three-part modeling framework: (i) a non-homogeneous Markov chain for the syndrome weight $ ext{Pr}(oldsymbol{ ext{W}}_t=y)$, (ii) first-iteration flip statistics and the resulting discrepancies $oldsymbol{ ext{d}}_+$, $oldsymbol{ ext{d}}_-$, and (iii) second-iteration flip probabilities conditioned on four bit-class categories, enabling the computation of $ ext{Pr}(oldsymbol{ ext{E}}_{(2)}=0)$. By aggregating these components via the law of total probability, they obtain a closed-form-like estimate of the two-iteration DFR and validate it against Monte Carlo simulations across both transmission- and cryptography-grade parameters. The method yields dramatically tighter DFR bounds than prior approaches, enabling substantial reductions in LEDAcrypt key and ciphertext sizes (e.g., improvements by factors of $2^{70}$ to achieve $2^{-128}$ security) while maintaining security, and it demonstrates potential applicability to BIKE to support IND-CCA$2$ guarantees. Overall, the work provides a practical, scalable framework for DFR estimation in cryptographic settings where direct simulation is infeasible.
Abstract
Providing closed form estimates of the decoding failure rate of iterative decoder for low- and moderate-density parity check codes has attracted significant interest in the research community over the years. This interest has raised recently due to the use of iterative decoders in post-quantum cryptosystems, where the desired decoding failure rates are impossible to estimate via Monte Carlo simulations. In this work, we propose a new technique to provide accurate estimates of the DFR of a two-iterations (parallel) bit flipping decoder, which is also employable for cryptographic purposes. In doing so, we successfully tackle the estimation of the bit flipping probabilities at the second decoder iteration, and provide a fitting estimate for the syndrome weight distribution at the first iteration. We numerically validate our results, providing comparisons of the modeled and simulated weight of the syndrome, incorrectly-guessed error bit distribution at the end of the first iteration, and two-iteration Decoding Failure Rates (DFR), both in the floor and waterfall regime for simulatable codes. Finally, we apply our method to estimate the DFR of LEDAcrypt parameters, showing improvements by factors larger than $2^{70}$ (for NIST category $1$) with respect to the previous estimation techniques. This allows for a $\approx 20$% shortening in public key and ciphertext sizes, at no security loss, making the smallest ciphertext for NIST category $1$ only $6$% larger than the one of BIKE. We note that the analyzed two-iterations decoder is applicable in BIKE, where swapping it with the current black-gray decoder (and adjusting the parameters) would provide strong IND-CCA$2$ guarantees.
