Keep crypto_stream_salsa* constants close to their wrappers

This commit is contained in:
Frank Denis 2013-10-21 21:51:59 -07:00
parent 3f615b093f
commit e10a84350f
2 changed files with 4 additions and 6 deletions

View File

@ -12,16 +12,15 @@
#include <stddef.h>
#include "export.h"
#define crypto_stream_salsa2012_KEYBYTES 32U
#define crypto_stream_salsa2012_NONCEBYTES 8U
#ifdef __cplusplus
extern "C" {
#endif
#define crypto_stream_salsa2012_KEYBYTES 32U
SODIUM_EXPORT
size_t crypto_stream_salsa2012_keybytes(void);
#define crypto_stream_salsa2012_NONCEBYTES 8U
SODIUM_EXPORT
size_t crypto_stream_salsa2012_noncebytes(void);

View File

@ -12,16 +12,15 @@
#include <stddef.h>
#include "export.h"
#define crypto_stream_salsa208_KEYBYTES 32U
#define crypto_stream_salsa208_NONCEBYTES 8U
#ifdef __cplusplus
extern "C" {
#endif
#define crypto_stream_salsa208_KEYBYTES 32U
SODIUM_EXPORT
size_t crypto_stream_salsa208_keybytes(void);
#define crypto_stream_salsa208_NONCEBYTES 8U
SODIUM_EXPORT
size_t crypto_stream_salsa208_noncebytes(void);