diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 13:07:06 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 13:07:06 +0200 |
commit | 26b173d328e36e423ff7765df5b3fc75abb6a1d9 (patch) | |
tree | 74028b066f95121cfac3ec494b6a64bd14ef8668 /curve.h | |
parent | 5ead7d42066286031cdd75b833fc9d3a2f6b3a53 (diff) |
crypto: add crypto header with includes and defines
Add another header with includes and defines, so that we can reduce
double-definitions, and shorten long text strings.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'curve.h')
-rw-r--r-- | curve.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -14,7 +14,7 @@ #include "built_in.h" #include "ioops.h" #include "rnd.h" -#include "crypto_box_curve25519xsalsa20poly1305.h" +#include "crypto.h" struct tai { uint64_t x; @@ -32,12 +32,6 @@ static struct taia tolerance_taia = { .atto = 0, }; -#define crypto_box_zerobytes crypto_box_curve25519xsalsa20poly1305_ZEROBYTES -#define crypto_box_boxzerobytes crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES - -#define crypto_box_noncebytes crypto_box_curve25519xsalsa20poly1305_NONCEBYTES -#define crypto_box_beforenmbytes crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES - struct curve25519_proto { unsigned char enonce[crypto_box_noncebytes] __aligned_16; unsigned char dnonce[crypto_box_noncebytes] __aligned_16; |