Here are some sample program packages to supplement the corresponding papers.
Most of my programs are readily available as parts of
Kash or
Magma.
GHS attack. Magma package for
computing things related to the (generalized) GHS attack
and some simple examples for testing. Readily included in Magma. (ghs.m), (ghs-test.m)
Pairing friendly curves. Short test program to compute elliptic
curves from the Barreto-Naehrig family with embedding degree 12.
(barreto-naehrig.m)
Weil pairing on elliptic curves. Short test program to
compute the Weil pairing on elliptic
curves. No fancy speedups included.
(wp.m). Magma also has an intrinsic for computing
the Tate-Lichtenbaum pairing for general curves. The code is
quite similar to the
computational definition and makes internal use of product representations of
algebraic functions of large degree.
As usual, the software comes without any warranty and copyright remains with
the author.