curve: curve25519_encode/curve25519_decode: simplify crypto transforms

Simplify curve25519_encode() and curve25519_decode() transforms by making
the code more clear and by introducing macro accessors to nonces.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>