Skip to content

Commit

Permalink
Keep crypto_stream_salsa* constants close to their wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Oct 22, 2013
1 parent 3f615b0 commit e10a843
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/libsodium/include/sodium/crypto_stream_salsa2012.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
5 changes: 2 additions & 3 deletions src/libsodium/include/sodium/crypto_stream_salsa208.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e10a843

Please sign in to comment.