Implementing Pairing-Based Cryptography