If lies in the ground field and the embedding degree is at least 2, then where is the function with divisor .
Proof: Choose any point that is one of and consider the function that satisfies , so that the Tate pairing is We have since it does not have a zero or pole at . Hence by Fermat's Little Theorem (we know must divide ) so the pairing can be computed using
Let be equations for vertical lines through respectively. Let be the equation of the line through and (and hence ). Then By choice of , are nonzero and finite, and as they are ultimately exponentiated by , we have Hence
Using Twist Curves
We use the same notation as before. Assume is even. Let . Let be the twist of the curve , so that if is a quadratic nonresidue in and is given by then is given by (see notes on MNT curves). (We have .) Then the map given by is a homomorphism.
Now let be a point of order in and be any point in . Setting , , where denotes the coset containing , to be the Tate pairing, and to the subgroup of of order yields a pairing suitable for cryptography.
Most operations occur in the fields and . We only apply the map and perform operations in when a pairing is required.
The above map is precisely the map that was mentioned in the the first example on the page defining the pairing. We have essentially described a way for all pairing-based cryptosystems (that use an even embedding degree) to benefit from twist maps.
Note we have a dilemma for the second example on the page mentioned above. The twist of is (if we have chosen a field where is a quadratic nonresidue). If the inputs to the pairing come from the same group, we cannot use twist curves. Although most operations still are performed in the base field, we cannot use the denominator elimination optimization described below. The alternative is to use the twist curve for the second input group, but now the inputs to the pairing come from different groups.
Denominator Elimination
To compute a Tate pairing, a quotient is iteratively calculated (Miller's algorithm) and then raised to power of , the Tate exponent. Each factor of the denominator is the equation of a vertical line evaluated at a particular point, i.e. the equation evaluated at some point , which gives the factor .
Because of the way we have selected our groups, (note that the map leaves the -coordinate of its input in the same field), and hence .
Any element satisfies . Observe divides , the Tate exponent, because cannot divide (otherwise would be the embedding degree, not ). Thus each factor raised to the Tate exponent is , so it can be left out of the quotient. Hence there is no need to compute the denominator at any time in Miller's algorithm, which we rewrite below.
- set and
-
for to 0 do
- set and
-
if then
- set and
- end
- end
For odd , the calculation in last iteration is Since , is simply the vertical line at which by denominator elimination can be ignored. Hence .