Elliptic Curves: Number Theory and Cryptography, Second Edition