Portable implementation of the curve25519 elliptic-curve cryptographic function