flowtop: Remove unnecessary bug_on() and rework presenter_screen_init()
[netsniff-ng.git] / crypto.h
blob5e3af32b56857adf61d29c904ae3bccaa195ea98
1 #ifndef CRYPTO_H
2 #define CRYPTO_H
4 #include "taia.h"
5 #include "crypto_verify_32.h"
6 #include "crypto_hash_sha512.h"
7 #include "crypto_box_curve25519xsalsa20poly1305.h"
8 #include "crypto_scalarmult_curve25519.h"
9 #include "crypto_auth_hmacsha512256.h"
11 #define crypto_box_zerobytes crypto_box_curve25519xsalsa20poly1305_ZEROBYTES
12 #define crypto_box_boxzerobytes crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES
13 #define crypto_box_noncebytes crypto_box_curve25519xsalsa20poly1305_NONCEBYTES
14 #define crypto_box_beforenmbytes crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES
15 #define crypto_box_beforenm crypto_box_curve25519xsalsa20poly1305_beforenm
16 #define crypto_box_afternm crypto_box_curve25519xsalsa20poly1305_afternm
17 #define crypto_box_open_afternm crypto_box_curve25519xsalsa20poly1305_open_afternm
18 #define crypto_box_pub_key_size crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES
19 #define crypto_box_sec_key_size crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES
21 #define NONCE_LENGTH (sizeof(struct taia))
22 #define NONCE_OFFSET (crypto_box_noncebytes - NONCE_LENGTH)
24 #endif /* CRYPTO_H */