summaryrefslogtreecommitdiff
path: root/crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto.h')
-rw-r--r--crypto.h4
1 files changed, 4 insertions, 0 deletions
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 */