A Combinatorial Approach to Avoiding Weak Keys in the BIKE Cryptosystem
Gretchen L Matthews, Emily McMillon
TL;DR
This work establishes a concrete link between decoding weaknesses in BIKE and the presence of $4$-cycles in the Tanner graph representations of QC-MDPC codes. It develops a precise counting framework for $4$-cycles, separating contributions from individual circulants and cross-block interactions, and introduces a practical filter that uses cycle-structure features to prune weak keys. The authors extend the analysis to general QC-MDPC codes, identify cycle-types that most strongly influence decoder failure, and provide experimental evidence that short cycles within a single circulant are more detrimental than cross-circulant ones. They further show that complete avoidance of $4$-cycles is theoretically unlikely for BIKE parameters, underscoring the relevance of cycle-aware key filtering in practice, and provide data for reproducibility. The findings have implications for secure parameter selection and key generation in code-based post-quantum cryptosystems.
Abstract
Bit Flipping Key Encapsulation (BIKE) is a code-based cryptosystem that was considered in Round 4 of the NIST Post-Quantum Cryptography Standardization process. It is based on quasi-cyclic moderate-density parity-check (QC-MDPC) codes paired with an iterative decoder. While (low-density) parity-check codes have been shown to perform well in practice, their capabilities are governed by the code's graphical representation and the choice of decoder rather than the traditional code parameters, making it difficult to determine the decoder failure rate (DFR). Moreover, decoding failures have been demonstrated to lead to attacks that recover the BIKE private key. In this paper, we demonstrate a strong correlation between weak keys and $4$-cycles in their associated Tanner graphs. We give concrete ways to enumerate the number of 4-cycles in a BIKE key and use these results to present a filtering algorithm that will filter BIKE keys with large numbers of 4-cycles. These results also apply to more general parity check codes.
