This research, a collaboration between Gemplus and Microsoft Research, introduces a refined approach to scalar multiplication in Elliptic Curve Cryptography (ECC). By mathematically "bundling" point operations, the authors demonstrate how to trade expensive field inversions for cheaper multiplications, achieving significant speedups in environments where inversions are a bottleneck.
The Bottleneck: Field Inversions
In ECC, the primary computational task is scalar multiplication: computing $nP$ for a large integer $n$ and a point $P$ on an elliptic curve. This operation is central to protocols like ECDSA and Diffie-Hellman.
The efficiency of scalar multiplication depends on the cost of field arithmetic: inversion ($I$), squaring ($S$), and multiplication ($M$). Historically, inversions are significantly slower than multiplications. While "projective coordinates" can eliminate inversions at the cost of extra multiplications, "affine coordinates" require them. This paper optimizes affine coordinate arithmetic by finding algebraic shortcuts that "hide" multiple operations behind a single inversion.
Optimized Methods for Point Operations
The authors focus on improving the "double-and-add" process. Instead of performing point doubling ($2P$) and addition ($+Q$) as separate steps—each requiring its own inversion—they derived a unified formula for $(2P + Q)$ that requires only one inversion.
Key technical strategies include:
- Algebraic Substitution: Substituting doubling formulas into addition formulas eliminates the need for intermediate y-coordinates, saving multiplications.
- High-Efficiency Tripling: The authors developed a dedicated formula for tripling a point ($3P$) that is exceptionally efficient.
- Mixed-Base Arithmetic: Since tripling ($3P$) is cheaper than the general $(2P + Q)$ operation, the authors propose a "mixed-base" algorithm. This approach decomposes the scalar $n$ using both powers of 2 and 3, selecting the most efficient operation at each step.
Key Insights: The "Break-Even" Point
The proposed method becomes superior when the cost ratio of inversion to multiplication ($\alpha = I/M$) exceeds 6. In many practical implementations, such as smart cards, $\alpha$ ranges from 10 to 80, making these formulas highly relevant. Furthermore, the algorithms are designed for "register efficiency," requiring only 6 to 7 intermediate registers—a critical advantage for resource-constrained hardware.
Key Results and Performance
The paper provides concrete cost comparisons for various operations:
- New $(2P + Q)$ Cost: $1I + 2S + 9M$.
- New $3P$ Cost: $1I + 4S + 7M$.
These optimizations lead to a measurable reduction in the "cost per bit" of scalar multiplication compared to standard affine and ELM methods by significantly reducing the number of inversions required.
In a practical test case (computing $314159P$), the ternary/binary approach required 15 inversions and 95 multiplications, compared to 17 inversions and 97 multiplications for the standard binary NAF method. This represents approximately a 5% total savings in field operations.
Limitations and Future Work
- Side-Channel Vulnerability: The ternary/binary algorithm branches based on the scalar's value, potentially exposing it to timing or power analysis attacks. It is best suited for scenarios where the exponent is public or side-channel resistance is handled elsewhere.
- Architecture Dependence: Gains are sensitive to the hardware's $I/M$ ratio. Traditional methods remain competitive on platforms with extremely fast inversions.
- Future Directions: Potential improvements include exploring higher-order "windowing" methods or applying these affine shortcuts to specific curve types like Koblitz curves.
Summary updated