A Diffie–Hellman implementation for iOS