From 22aeecb491b346fe944f38e083cd26d4d235c632 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 11 Jun 2013 00:22:08 +0200 Subject: curve: move selftest to own file Move the curve selftest to its own file. Signed-off-by: Daniel Borkmann --- crypto.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crypto.h') diff --git a/crypto.h b/crypto.h index d06da00..5e3af32 100644 --- a/crypto.h +++ b/crypto.h @@ -1,6 +1,7 @@ #ifndef CRYPTO_H #define CRYPTO_H +#include "taia.h" #include "crypto_verify_32.h" #include "crypto_hash_sha512.h" #include "crypto_box_curve25519xsalsa20poly1305.h" @@ -17,4 +18,7 @@ #define crypto_box_pub_key_size crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES #define crypto_box_sec_key_size crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES +#define NONCE_LENGTH (sizeof(struct taia)) +#define NONCE_OFFSET (crypto_box_noncebytes - NONCE_LENGTH) + #endif /* CRYPTO_H */ -- cgit v1.2.3-54-g00ecf