ui: Print empty rows when clearing table
[netsniff-ng-new.git] / crypto.h
blobdc145855ddd9ad79ae3820309f26bb2a6bc9b4f6
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_RND_LENGTH (crypto_box_boxzerobytes - NONCE_LENGTH)
23 #define NONCE_ALL_LENGTH (crypto_box_boxzerobytes + NONCE_LENGTH)
24 #define NONCE_OFFSET (crypto_box_noncebytes - NONCE_LENGTH)
25 #define NONCE_EDN_OFFSET(x) ((x) + NONCE_OFFSET)
26 #define NONCE_PKT_OFFSET(x) ((x) + NONCE_RND_LENGTH)
28 #endif /* CRYPTO_H */