curve: curve25519_encode/curve25519_decode: simplify crypto transforms
commit2dbc1750eabb3781ec8181b5a73b54f6b8d64ef6
authorDaniel Borkmann <dborkman@redhat.com>
Sat, 15 Jun 2013 17:16:29 +0000 (15 19:16 +0200)
committerDaniel Borkmann <dborkman@redhat.com>
Sat, 15 Jun 2013 17:16:29 +0000 (15 19:16 +0200)
treead3480617fb0fb43289ae599f895d6a3034323bb
parent5bc9299f0d1b0baf220b75da86520606e87c4b3a
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>
crypto.h
curve.c