High-Speed Elliptic Curve and Pairing-Based Cryptography