libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / include / sodium / crypto_stream_aes128ctr.h
blobdf9ee34a575c2a6de16fbba88c2d3511cbafe5b8
1 #ifndef crypto_stream_aes128ctr_H
2 #define crypto_stream_aes128ctr_H
4 /*
5 * WARNING: This is just a stream cipher. It is NOT authenticated encryption.
6 * While it provides some protection against eavesdropping, it does NOT
7 * provide any security against active attacks.
8 * Unless you know what you're doing, what you are looking for is probably
9 * the crypto_box functions.
12 #include <stddef.h>
13 #include "export.h"
15 #define crypto_stream_aes128ctr_KEYBYTES 16U
16 #define crypto_stream_aes128ctr_NONCEBYTES 16U
17 #define crypto_stream_aes128ctr_BEFORENMBYTES 1408U
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
23 SODIUM_EXPORT
24 size_t crypto_stream_aes128ctr_keybytes(void);
26 SODIUM_EXPORT
27 size_t crypto_stream_aes128ctr_noncebytes(void);
29 SODIUM_EXPORT
30 size_t crypto_stream_aes128ctr_beforenmbytes(void);
32 SODIUM_EXPORT
33 const char * crypto_stream_aes128ctr_primitive(void);
35 SODIUM_EXPORT
36 int crypto_stream_aes128ctr(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
38 SODIUM_EXPORT
39 int crypto_stream_aes128ctr_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
41 SODIUM_EXPORT
42 int crypto_stream_aes128ctr_beforenm(unsigned char *,const unsigned char *);
44 SODIUM_EXPORT
45 int crypto_stream_aes128ctr_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
47 SODIUM_EXPORT
48 int crypto_stream_aes128ctr_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
50 #ifdef __cplusplus
52 #endif
54 #define crypto_stream_aes128ctr_portable crypto_stream_aes128ctr
55 #define crypto_stream_aes128ctr_portable_xor crypto_stream_aes128ctr_xor
56 #define crypto_stream_aes128ctr_portable_beforenm crypto_stream_aes128ctr_beforenm
57 #define crypto_stream_aes128ctr_portable_afternm crypto_stream_aes128ctr_afternm
58 #define crypto_stream_aes128ctr_portable_xor_afternm crypto_stream_aes128ctr_xor_afternm
60 #endif