1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-28 22:21:15 -07:00

Tag salsa208 as deprecated

This commit is contained in:
Frank Denis 2017-09-19 23:56:12 +02:00
parent ee1d5c96d8
commit 91233a0143
2 changed files with 21 additions and 11 deletions

View File

@ -10,19 +10,23 @@ extern "C" {
#define crypto_core_salsa208_OUTPUTBYTES 64U #define crypto_core_salsa208_OUTPUTBYTES 64U
SODIUM_EXPORT SODIUM_EXPORT
size_t crypto_core_salsa208_outputbytes(void); size_t crypto_core_salsa208_outputbytes(void)
__attribute__ ((deprecated));
#define crypto_core_salsa208_INPUTBYTES 16U #define crypto_core_salsa208_INPUTBYTES 16U
SODIUM_EXPORT SODIUM_EXPORT
size_t crypto_core_salsa208_inputbytes(void); size_t crypto_core_salsa208_inputbytes(void)
__attribute__ ((deprecated));
#define crypto_core_salsa208_KEYBYTES 32U #define crypto_core_salsa208_KEYBYTES 32U
SODIUM_EXPORT SODIUM_EXPORT
size_t crypto_core_salsa208_keybytes(void); size_t crypto_core_salsa208_keybytes(void)
__attribute__ ((deprecated));
#define crypto_core_salsa208_CONSTBYTES 16U #define crypto_core_salsa208_CONSTBYTES 16U
SODIUM_EXPORT SODIUM_EXPORT
size_t crypto_core_salsa208_constbytes(void); size_t crypto_core_salsa208_constbytes(void)
__attribute__ ((deprecated));
SODIUM_EXPORT SODIUM_EXPORT
int crypto_core_salsa208(unsigned char *out, const unsigned char *in, int crypto_core_salsa208(unsigned char *out, const unsigned char *in,

View File

@ -21,27 +21,33 @@ extern "C" {
#define crypto_stream_salsa208_KEYBYTES 32U #define crypto_stream_salsa208_KEYBYTES 32U
SODIUM_EXPORT SODIUM_EXPORT
size_t crypto_stream_salsa208_keybytes(void); size_t crypto_stream_salsa208_keybytes(void)
__attribute__ ((deprecated));
#define crypto_stream_salsa208_NONCEBYTES 8U #define crypto_stream_salsa208_NONCEBYTES 8U
SODIUM_EXPORT SODIUM_EXPORT
size_t crypto_stream_salsa208_noncebytes(void); size_t crypto_stream_salsa208_noncebytes(void)
__attribute__ ((deprecated));
#define crypto_stream_salsa208_MESSAGEBYTES_MAX SODIUM_SIZE_MAX #define crypto_stream_salsa208_MESSAGEBYTES_MAX SODIUM_SIZE_MAX
SODIUM_EXPORT SODIUM_EXPORT
size_t crypto_stream_salsa208_messagebytes_max(void); size_t crypto_stream_salsa208_messagebytes_max(void)
__attribute__ ((deprecated));
SODIUM_EXPORT SODIUM_EXPORT
int crypto_stream_salsa208(unsigned char *c, unsigned long long clen, int crypto_stream_salsa208(unsigned char *c, unsigned long long clen,
const unsigned char *n, const unsigned char *k); const unsigned char *n, const unsigned char *k)
__attribute__ ((deprecated));
SODIUM_EXPORT SODIUM_EXPORT
int crypto_stream_salsa208_xor(unsigned char *c, const unsigned char *m, int crypto_stream_salsa208_xor(unsigned char *c, const unsigned char *m,
unsigned long long mlen, const unsigned char *n, unsigned long long mlen, const unsigned char *n,
const unsigned char *k); const unsigned char *k)
__attribute__ ((deprecated));
SODIUM_EXPORT SODIUM_EXPORT
void crypto_stream_salsa208_keygen(unsigned char k[crypto_stream_salsa208_KEYBYTES]); void crypto_stream_salsa208_keygen(unsigned char k[crypto_stream_salsa208_KEYBYTES])
__attribute__ ((deprecated));
#ifdef __cplusplus #ifdef __cplusplus
} }