The Weil Pairing on Elliptic Curves and its Cryptographic Applications