1 #ifndef crypto_stream_aes128ctr_H
2 #define crypto_stream_aes128ctr_H
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.
15 #define crypto_stream_aes128ctr_KEYBYTES 16U
16 #define crypto_stream_aes128ctr_NONCEBYTES 16U
17 #define crypto_stream_aes128ctr_BEFORENMBYTES 1408U
24 size_t crypto_stream_aes128ctr_keybytes(void);
27 size_t crypto_stream_aes128ctr_noncebytes(void);
30 size_t crypto_stream_aes128ctr_beforenmbytes(void);
33 const char * crypto_stream_aes128ctr_primitive(void);
36 int crypto_stream_aes128ctr(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
39 int crypto_stream_aes128ctr_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
42 int crypto_stream_aes128ctr_beforenm(unsigned char *,const unsigned char *);
45 int crypto_stream_aes128ctr_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
48 int crypto_stream_aes128ctr_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
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