Side Channel Attacks on Implementations of Curve-Based Cryptographic Primitives.