Implementations of a fast Elliptic-curve Diffie-Hellman primitive