TL;DR
This paper proposes a minor modification to the BIKE post-quantum cryptography candidate to enhance its security by binding the random errors used in encryption to the specific public key. This change, while having a negligible performance impact, addresses a potential weakness in multi-user scenarios and aligns BIKE with the security practices of other leading PQC candidates.
What Problem Does This Paper Address?
Post-quantum cryptography (PQC) aims to develop encryption methods resistant to attacks from future quantum computers. BIKE is a promising candidate in this space, utilizing code-based cryptography. A key aspect of BIKE's security relies on the Fujisaki-Okamoto (FO) transformation, which requires a probabilistic "decode" step that can sometimes fail. To ensure security even with these potential failures, BIKE's design, like many other PQC schemes, is intended to be IND-CCA secure.
However, the current BIKE design has a property where the random errors (which are crucial for the encryption process) are generated independently of the public key. This means an attacker could potentially generate a set of errors and use them to craft ciphertexts for multiple different public keys. While no specific attack exploits this vulnerability in BIKE yet, it represents a potential avenue for future cryptanalytic efforts, especially in multi-user environments. Other leading PQC candidates like Kyber and FrodoKEM already incorporate a mechanism to bind these random elements to the public key, a practice this paper advocates for BIKE.
Methods
The authors propose to modify BIKE's encapsulation process by incorporating the public key into the generation of the random error vectors. Currently, BIKE uses a hash function H to generate these error vectors from a random seed m. The proposed modification involves using a new function, f, which takes both the message m and the public key pk as input, and then feeds the output of f into the existing hash function H.
Two specific functions, f1 and f2, are detailed:
- f1: Concatenates the message
mwith the public keypk(m || pk) before hashing. - f2: Concatenates the message
mwith the hash of the public keypk(m || H'(pk)) before hashing.
These functions are designed to be collision-resistant cryptographic hash functions (like SHA256). The paper also discusses and dismisses other potential binding methods, such as simply padding the public key or truncating its tail, due to concerns about the non-uniformity of BIKE public keys. The modified BIKE scheme, incorporating this binding, is illustrated in Figure 2 of the paper.
Datasets
Not discussed in the paper. The paper focuses on theoretical modifications and their implementation impact, rather than training on or evaluating against specific datasets.
Key Insights and Ideas
- The "binding" problem: The core insight is that generating random errors independently of the public key, while seemingly innocuous, can create a weakness in multi-user scenarios. This is because an attacker might be able to reuse error vectors across different targets.
- Proactive security: By binding the errors to the public key, BIKE adopts a security practice already employed by other leading PQC candidates, demonstrating a commitment to robust security design.
- Minimal performance overhead: The proposed modification has a very small impact on performance, making it a practical and cost-effective security enhancement. This is crucial for adoption in real-world systems.
- Flexibility of implementation: The authors highlight that their proposed modification is easily integrated into existing BIKE implementations due to the modular design of the code, particularly the use of a compilation flag.
Key Results
The paper presents performance results in Table 1, comparing the original BIKE with the modified version using the proposed binding. The key findings are:
- Encapsulation slowdown: The encapsulation process experiences a slowdown of up to 15.3%.
- Decapsulation slowdown: The decapsulation process experiences a much smaller slowdown of up to 1.3%.
- Negligible impact on decapsulation: The authors emphasize that the impact on decapsulation is almost negligible, which is important given that decapsulation can be a more performance-critical operation in some scenarios.
Limitations and Future Work
- No known attack: The authors explicitly state that there is currently no known attack that leverages the lack of binding in BIKE. The proposed modification is a proactive measure to prevent potential future vulnerabilities.
- Choice of binding function: The paper discusses two options (
f1andf2) for binding. Whilef1is recommended for ephemeral key usage (common in protocols like TLS),f2is recommended for static keys due to no performance cost. The choice depends on the specific use case. - Further analysis: While the paper demonstrates the technical feasibility and performance impact, further cryptanalytic analysis of the modified BIKE scheme would be beneficial to fully confirm its enhanced security.
The authors suggest that this modification aligns BIKE with the design principles of other PQC candidates and is a valuable step if BIKE is eventually standardized.
Summary updated