TL;DR
This paper tackles a critical performance bottleneck in post-quantum cryptography, specifically for the BIKE KEM. They introduce a novel, optimized constant-time polynomial inversion algorithm that significantly speeds up key generation, making BIKE-2 a more competitive and practical choice for secure communication.
What Problem Does This Paper Address?
The NIST PQC standardization project is evaluating various post-quantum cryptography (PQC) schemes. Among these, BIKE (Bit Flipping Key Encapsulation) is a promising candidate. BIKE has different variants, with BIKE-2 offering a significant advantage in communication bandwidth compared to BIKE-1 and BIKE-3. However, BIKE-2's key generation process involves a computationally expensive operation: polynomial inversion over a finite field. This cost is so high that it can be prohibitive, especially for applications requiring forward secrecy through ephemeral keys, where keys are generated frequently. This paper aims to reduce this computational overhead, making BIKE-2 a more viable option.
Methods
The core contribution of this paper is a new, optimized constant-time algorithm for polynomial inversion in the ring $F_2[x]/((x-1)h)$, where $h$ is an irreducible polynomial. This algorithm is inspired by the Itoh-Tsuji Inversion (ITI) algorithm but is adapted to the specific algebraic structure of the BIKE scheme. The authors leverage the efficiency of "k-squaring" operations, which involve raising a polynomial to a power of $2^k$. They also introduce optimizations such as:
- Optimized k-squaring: A custom exponentiation procedure that efficiently computes $a^{2^{2^t}-1}$.
- Decomposition of $2^{r-1}-2$: A specific decomposition technique to apply the optimized k-squaring.
- Inverted permutation: An efficient method for polynomial squaring by reordering memory accesses.
- Vectorized instructions: Utilizing modern CPU instructions like Intel's Vector-PCLMULQDQ for accelerated polynomial multiplication.
- Precomputed tables: Storing permutation maps to speed up operations when the ring parameter $r$ is fixed.
Datasets
Not discussed in the paper. The paper focuses on algorithmic improvements and performance evaluation on specific hardware platforms.
Key Insights and Ideas
- Polynomial inversion is a major bottleneck: The paper clearly identifies polynomial inversion as the primary performance hurdle for BIKE-2's key generation, hindering its adoption.
- Leveraging algebraic structure is key: The authors demonstrate that by exploiting the specific ring structure in BIKE, a significant speedup in polynomial inversion can be achieved, surpassing general-purpose algorithms.
- Constant-time implementation is crucial: The focus on constant-time algorithms is essential for cryptographic security, preventing timing side-channel attacks.
- Modern CPU instructions offer substantial gains: The paper highlights the impact of using vectorized instructions like PCLMULQDQ, showing significant speedups over older methods.
- Trade-offs exist: While precomputed tables offer speedups, they come at the cost of increased memory usage, presenting a design choice.
Key Results
The proposed optimized polynomial inversion algorithm achieves substantial speedups:
- 11.8x speedup over the NTL library.
- 55.5x speedup over OpenSSL.
- With Intel's Vector-PCLMULQDQ instructions, they achieve 14.3x speedup over NTL and 96.8x speedup over OpenSSL on a laptop.
- These improvements make BIKE-2's key generation competitive, with performance comparable to or better than BIKE-1 in some aspects, especially considering BIKE-2's bandwidth advantage.
Limitations and Future Work
- Platform dependency: The performance gains from vectorized instructions are hardware-dependent. While they show impressive results on modern Intel CPUs, performance on other architectures might differ.
- Memory vs. Speed Trade-off: The use of precomputed tables for faster inversion increases memory requirements, which might be a concern in resource-constrained environments.
- Future Work: The authors suggest further optimizations by exploring more advanced multiplication algorithms and potentially adapting protocols to leverage batched key pair generation for further efficiency gains. They also note that as Intel releases servers with newer generation processors (like those with 10th Gen CPUs), additional speedups can be expected.
Summary updated