Introduction
Embedded security for IoT devices and smart cards faces a persistent threat: side-channel attacks. By monitoring physical characteristics like power consumption or electromagnetic emissions, attackers can extract secret keys during cryptographic operations. While "leakage-resilient" (LR) cryptography offers theoretical proofs of security under such conditions, a significant gap exists between these mathematical models and practical hardware implementations. This paper addresses this gap by proposing a more realistic security model and implementing an improved ElGamal-based key encapsulation mechanism (KEM) on a 32-bit ARM microcontroller.
A Practical Leakage Model
Theoretical LR models often rely on "bounded leakage," assuming an attacker can only learn a fixed number of bits. However, real-world power traces can contain gigabytes of data, making bit-counting models impractical. The authors propose a more flexible model based on min-entropy, requiring only that the secret input retains sufficient uncertainty after leakage occurs. This approach aligns more closely with the realities of side-channel analysis.
The security of the KEM is evaluated through a formal game, as shown in the figure above, which incorporates a leakage oracle to simulate the information an adversary might gain during decapsulation. By using a different proof technique, the authors achieved a tighter security bound than previous literature, despite using this more relaxed and realistic leakage model.
The BEG-KEM+ Construction
The original Bilinear ElGamal (BEG-KEM) scheme is vulnerable to Simple Power Analysis (SPA) because it uses secret exponentiation for multiplicative blinding. In side-channel defense, operations where a secret bit controls a loop (such as square-and-multiply) are the most dangerous.
To eliminate this "Achilles heel," the authors introduce BEG-KEM+. This variant replaces secret-scalar multiplication with a deterministic encoding method—specifically the Fouque-Tibouchi method—that maps random strings directly to points on an elliptic curve. By avoiding secret-bit-controlled loops during the sensitive "refreshing" phase, the implementation becomes significantly more robust against power analysis. Furthermore, the authors argue that pairing-based cryptography is inherently more robust against SPA because the "secret" is a point on a curve rather than a scalar, making coordinate extraction from power traces significantly more difficult.
Hardware Implementation and Performance
The authors implemented BEG-KEM+ in ANSI C using the MIRACL library on an ARM Cortex-M3 (Arduino Due). They utilized an Ate pairing over a 254-bit Barreto-Naehrig (BN) curve, targeting a security level roughly equivalent to AES-128.
As shown in the table, the "hardened" BEG-KEM+ introduces minimal overhead. Encapsulation remains identical at 34 million cycles, while Decapsulation increases from 131 to 140 million cycles—a mere 6.8% performance penalty for substantially improved side-channel resistance. This work represents the first successful implementation and evaluation of a leakage-resilient public-key scheme from theoretical literature on a resource-constrained 32-bit processor.
Conclusion and Future Work
While the authors provide a strong practical perspective, they acknowledge limitations, such as the reliance on the "Generic Bilinear Group" model for security proofs. Future work should focus on optimizing the pairing operations themselves for microcontrollers, as the pairing remains the most computationally expensive part of the process, consuming approximately 65 million cycles. Nevertheless, this research demonstrates that robust side-channel protection can be achieved with manageable computational costs in real-world embedded systems.
Summary updated