diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-11 00:22:08 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-11 00:22:08 +0200 |
commit | 22aeecb491b346fe944f38e083cd26d4d235c632 (patch) | |
tree | 44d44c9b36ad442214ca04b32901b9f207859356 /crypto.h | |
parent | 42d1a29e7b7a55f39114115b9cb4814989ad5bf2 (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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |