1 #ifndef crypto_stream_aes256estream_H
2 #define crypto_stream_aes256estream_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 * Furthermore, this implementation was not part of NaCl.
9 * Unless you know what you're doing, what you are looking for is probably
10 * the crypto_box functions.
16 #define crypto_stream_aes256estream_KEYBYTES 32U
17 #define crypto_stream_aes256estream_NONCEBYTES 16U
18 #define crypto_stream_aes256estream_BEFORENMBYTES 276U
25 size_t crypto_stream_aes256estream_keybytes(void);
28 size_t crypto_stream_aes256estream_noncebytes(void);
31 size_t crypto_stream_aes256estream_beforenmbytes(void);
34 const char * crypto_stream_aes256estream_primitive(void);
37 int crypto_stream_aes256estream(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
40 int crypto_stream_aes256estream_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
43 int crypto_stream_aes256estream_beforenm(unsigned char *,const unsigned char *);
46 int crypto_stream_aes256estream_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
49 int crypto_stream_aes256estream_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
55 #define crypto_stream_aes256estream_hongjun crypto_stream_aes256estream
56 #define crypto_stream_aes256estream_hongjun_xor crypto_stream_aes256estream_xor
57 #define crypto_stream_aes256estream_hongjun_beforenm crypto_stream_aes256estream_beforenm
58 #define crypto_stream_aes256estream_hongjun_afternm crypto_stream_aes256estream_afternm
59 #define crypto_stream_aes256estream_hongjun_xor_afternm crypto_stream_aes256estream_xor_afternm