summaryrefslogtreecommitdiff
path: root/crypto.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-11 00:22:08 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-11 00:22:08 +0200
commit22aeecb491b346fe944f38e083cd26d4d235c632 (patch)
tree44d44c9b36ad442214ca04b32901b9f207859356 /crypto.h
parent42d1a29e7b7a55f39114115b9cb4814989ad5bf2 (diff)
curve: move selftest to own file
Move the curve selftest to its own file. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
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 */