1 #ifndef crypto_stream_salsa208_H
2 #define crypto_stream_salsa208_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_salsa208_KEYBYTES 32U
16 #define crypto_stream_salsa208_NONCEBYTES 8U
23 size_t crypto_stream_salsa208_keybytes(void);
26 size_t crypto_stream_salsa208_noncebytes(void);
29 const char * crypto_stream_salsa208_primitive(void);
32 int crypto_stream_salsa208(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
35 int crypto_stream_salsa208_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
41 #define crypto_stream_salsa208_ref crypto_stream_salsa208
42 #define crypto_stream_salsa208_ref_xor crypto_stream_salsa208_xor