From 26b173d328e36e423ff7765df5b3fc75abb6a1d9 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 4 Jun 2013 13:07:06 +0200 Subject: 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 --- curve.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'curve.h') diff --git a/curve.h b/curve.h index b7aebcb..ee4a322 100644 --- a/curve.h +++ b/curve.h @@ -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; -- cgit v1.2.3-54-g00ecf