diff --git a/src/libsodium/include/sodium/crypto_stream.h b/src/libsodium/include/sodium/crypto_stream.h index 9ac6a259..8150a2fc 100644 --- a/src/libsodium/include/sodium/crypto_stream.h +++ b/src/libsodium/include/sodium/crypto_stream.h @@ -1,6 +1,14 @@ #ifndef crypto_stream_H #define crypto_stream_H +/* + * WARNING: This is just a stream cipher. It is NOT authenticated encryption. + * While it provides some protection against eavesdropping, it does NOT + * provide any security against active attacks. + * Unless you know what you're doing, what you are looking for is probably + * the crypto_box functions. + */ + #include #include "crypto_stream_xsalsa20.h" diff --git a/src/libsodium/include/sodium/crypto_stream_aes128ctr.h b/src/libsodium/include/sodium/crypto_stream_aes128ctr.h index dccf6a0f..c8cf836b 100644 --- a/src/libsodium/include/sodium/crypto_stream_aes128ctr.h +++ b/src/libsodium/include/sodium/crypto_stream_aes128ctr.h @@ -1,6 +1,14 @@ #ifndef crypto_stream_aes128ctr_H #define crypto_stream_aes128ctr_H +/* + * WARNING: This is just a stream cipher. It is NOT authenticated encryption. + * While it provides some protection against eavesdropping, it does NOT + * provide any security against active attacks. + * Unless you know what you're doing, what you are looking for is probably + * the crypto_box functions. + */ + #include "export.h" #define crypto_stream_aes128ctr_KEYBYTES 16 @@ -11,7 +19,6 @@ extern "C" { #endif - SODIUM_EXPORT int crypto_stream_aes128ctr(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); diff --git a/src/libsodium/include/sodium/crypto_stream_salsa20.h b/src/libsodium/include/sodium/crypto_stream_salsa20.h index c97f6ba6..61b77d3c 100644 --- a/src/libsodium/include/sodium/crypto_stream_salsa20.h +++ b/src/libsodium/include/sodium/crypto_stream_salsa20.h @@ -1,6 +1,14 @@ #ifndef crypto_stream_salsa20_H #define crypto_stream_salsa20_H +/* + * WARNING: This is just a stream cipher. It is NOT authenticated encryption. + * While it provides some protection against eavesdropping, it does NOT + * provide any security against active attacks. + * Unless you know what you're doing, what you are looking for is probably + * the crypto_box functions. + */ + #include "export.h" #define crypto_stream_salsa20_KEYBYTES 32 diff --git a/src/libsodium/include/sodium/crypto_stream_salsa2012.h b/src/libsodium/include/sodium/crypto_stream_salsa2012.h index 007ca34c..737dd183 100644 --- a/src/libsodium/include/sodium/crypto_stream_salsa2012.h +++ b/src/libsodium/include/sodium/crypto_stream_salsa2012.h @@ -1,6 +1,14 @@ #ifndef crypto_stream_salsa2012_H #define crypto_stream_salsa2012_H +/* + * WARNING: This is just a stream cipher. It is NOT authenticated encryption. + * While it provides some protection against eavesdropping, it does NOT + * provide any security against active attacks. + * Unless you know what you're doing, what you are looking for is probably + * the crypto_box functions. + */ + #include "export.h" #define crypto_stream_salsa2012_KEYBYTES 32 diff --git a/src/libsodium/include/sodium/crypto_stream_salsa208.h b/src/libsodium/include/sodium/crypto_stream_salsa208.h index 06689385..fd055525 100644 --- a/src/libsodium/include/sodium/crypto_stream_salsa208.h +++ b/src/libsodium/include/sodium/crypto_stream_salsa208.h @@ -1,6 +1,14 @@ #ifndef crypto_stream_salsa208_H #define crypto_stream_salsa208_H +/* + * WARNING: This is just a stream cipher. It is NOT authenticated encryption. + * While it provides some protection against eavesdropping, it does NOT + * provide any security against active attacks. + * Unless you know what you're doing, what you are looking for is probably + * the crypto_box functions. + */ + #include "export.h" #define crypto_stream_salsa208_KEYBYTES 32 diff --git a/src/libsodium/include/sodium/crypto_stream_xsalsa20.h b/src/libsodium/include/sodium/crypto_stream_xsalsa20.h index f792abca..2f5859e8 100644 --- a/src/libsodium/include/sodium/crypto_stream_xsalsa20.h +++ b/src/libsodium/include/sodium/crypto_stream_xsalsa20.h @@ -1,6 +1,14 @@ #ifndef crypto_stream_xsalsa20_H #define crypto_stream_xsalsa20_H +/* + * WARNING: This is just a stream cipher. It is NOT authenticated encryption. + * While it provides some protection against eavesdropping, it does NOT + * provide any security against active attacks. + * Unless you know what you're doing, what you are looking for is probably + * the crypto_box functions. + */ + #include "export.h" #define crypto_stream_xsalsa20_KEYBYTES 32