Abstract
Cryptographic pairings are the foundational mathematical primitives behind modern privacy-preserving technologies, including identity-based encryption (IBE), short digital signatures, and zero-knowledge proofs. However, their computational complexity remains a significant bottleneck for practical implementation. This paper provides a comprehensive survey of optimization techniques for cryptographic pairings, focusing on the influential contributions of Peter L. Montgomery. We challenge the standard preference for projective coordinates by demonstrating how efficient field inversions, "parabola" geometric constructions, and "squared pairings" can make affine coordinates faster and more efficient for high-security applications (128-bit to 256-bit). By analyzing the relative costs of field operations in extension fields, we show that the "affine comeback" is a viable path for high-performance cryptographic implementations.
Introduction
In modern cryptography, a pairing is a bilinear map that connects two groups—typically points on an elliptic curve—to a third group, usually a finite field. While mathematically elegant, pairings are computationally expensive to evaluate. For decades, the implementation "gold standard" was to use projective coordinates to avoid field inversions, which were historically much slower than multiplications.
This paper re-examines these assumptions in the context of modern security requirements. As security levels increase, the size of the extension fields used in pairings also grows, fundamentally shifting the relative costs of arithmetic operations. We explore how to minimize the cost of the Miller loop—the core iterative algorithm used to compute pairings—through a synthesis of algorithmic refinements and geometric shortcuts.
Methodology and Algorithmic Framework
The paper synthesizes several advanced techniques, many pioneered or refined by Peter Montgomery, to optimize the Miller loop and base field operations.
Miller’s Algorithm and the Ate Pairing
The foundational iterative process for computing Weil and Tate pairings is Miller’s algorithm. This survey focuses on the "ate pairing" variant, which often offers shorter loop lengths and reduced computational overhead compared to the original Tate pairing.
Extension Field Arithmetic
To speed up base field operations without requiring specific "friendly" prime shapes, the authors utilize Montgomery Arithmetic (multiplication and reduction). For extension fields, the Itoh-Tsujii Inversion method is employed. A key finding (Lemma 9.1) demonstrates that as the extension degree increases, the cost of inversion relative to multiplication drops significantly, making inversion-heavy algorithms more competitive.
Geometric and Algebraic Shortcuts
Several specific techniques are highlighted to reduce the number of field multiplications:
- Simultaneous Inversion: A technique to compute the inverses of multiple elements at the cost of a single inversion plus a few multiplications.
- The Parabola Technique: Instead of evaluating two separate line functions during a "double-and-add" step in the Miller loop, the authors describe a method using a single parabola equation. This geometric shortcut effectively saves field multiplications in the inner loop.
- Squared Pairings: This novel construction involves squaring the pairing, which allows the algorithm to ignore "vertical line" contributions in the Miller loop. Since these vertical lines depend only on the x-coordinate and cancel out during squaring, the resulting computation is leaner and faster.
Key Insights: The Affine Comeback
The most significant insight of this survey is that affine coordinates—long dismissed as too slow due to inversion costs—are actually superior for high-security pairings.
In high-security environments (128-bit to 256-bit), the required large extension fields change the arithmetic landscape. The relative cost of inversion ($I/M$ ratio) becomes low enough that the simpler arithmetic of affine coordinates outperforms the complex formulas required for projective or Jacobian coordinates. Furthermore, the use of denominator elimination in even embedding degrees drastically simplifies the rational functions evaluated during the Miller loop, further favoring the affine approach.
Quantitative Results
The paper provides detailed operation count comparisons between coordinate systems:
- Efficiency Thresholds: Affine coordinates are shown to outperform the fastest known projective formulas if an inversion in a specific extension field costs less than approximately 8 squarings and 13 additions.
- Doubling Steps: For a degree-2 twist, affine coordinates require only 1 inversion and 3 multiplications in the extension field. In contrast, Jacobian coordinates require 3 multiplications and 11 squarings.
- Squared Pairing Performance: The squared Weil pairing can advance through the addition-subtraction chain with only 12 field multiplications and 2 divisions in the generic case, compared to 18 multiplications and 2 divisions for the standard Miller method.
Limitations and Future Directions
While these optimizations offer significant theoretical speedups, practical implementation requires addressing several challenges:
- Side-Channel Resistance: Many of Montgomery’s optimizations must be carefully implemented to remain constant-time and resistant to timing or power analysis attacks.
- Parallelization: While the "right-to-left" Miller algorithm allows for parallel execution, the communication overhead between processor cores can negate gains unless multiple pairings are computed simultaneously (batching).
- Hardware Specifics: The optimal algorithm remains dependent on the specific processor architecture. Future work should focus on benchmarking these theoretical operation counts on modern ARM and x86-64 architectures to determine the exact crossover points for affine superiority in real-world hardware.
Summary updated