Export stream_salsa20 constants
This commit is contained in:
parent
e10a84350f
commit
af28f8f2cd
@ -5,7 +5,7 @@
|
|||||||
- big-endian architectures are now supported as well
|
- big-endian architectures are now supported as well
|
||||||
- The donna_c64 implementation of curve25519_donna_c64 now handles
|
- The donna_c64 implementation of curve25519_donna_c64 now handles
|
||||||
non-canonical points like the ref implementation
|
non-canonical points like the ref implementation
|
||||||
- Missing scalarmult_curve25519 constants are now exported
|
- Missing scalarmult_curve25519 and stream_salsa20 constants are now exported
|
||||||
- A crypto_onetimeauth_poly1305_ref() wrapper has been added
|
- A crypto_onetimeauth_poly1305_ref() wrapper has been added
|
||||||
|
|
||||||
* Version 0.4.3
|
* Version 0.4.3
|
||||||
|
@ -159,6 +159,7 @@ libsodium_la_SOURCES = \
|
|||||||
crypto_stream/aes256estream/stream_aes256estream_api.c \
|
crypto_stream/aes256estream/stream_aes256estream_api.c \
|
||||||
crypto_stream/aes256estream/hongjun/api.h \
|
crypto_stream/aes256estream/hongjun/api.h \
|
||||||
crypto_stream/aes256estream/hongjun/ecrypt-sync.h \
|
crypto_stream/aes256estream/hongjun/ecrypt-sync.h \
|
||||||
|
crypto_stream/salsa20/stream_salsa20_api.c \
|
||||||
crypto_stream/salsa2012/stream_salsa2012_api.c \
|
crypto_stream/salsa2012/stream_salsa2012_api.c \
|
||||||
crypto_stream/salsa2012/ref/api.h \
|
crypto_stream/salsa2012/ref/api.h \
|
||||||
crypto_stream/salsa2012/ref/stream_salsa2012.c \
|
crypto_stream/salsa2012/ref/stream_salsa2012.c \
|
||||||
|
@ -1 +1,16 @@
|
|||||||
#include "crypto_stream_salsa20.h"
|
#include "crypto_stream_salsa20.h"
|
||||||
|
|
||||||
|
size_t
|
||||||
|
crypto_stream_salsa20_keybytes(void) {
|
||||||
|
return crypto_stream_salsa20_KEYBYTES;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t
|
||||||
|
crypto_stream_salsa20_noncebytes(void) {
|
||||||
|
return crypto_stream_salsa20_NONCEBYTES;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *
|
||||||
|
crypto_stream_salsa20_primitive(void) {
|
||||||
|
return "salsa20";
|
||||||
|
}
|
||||||
|
@ -15,15 +15,24 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include "export.h"
|
#include "export.h"
|
||||||
|
|
||||||
#define crypto_stream_salsa20_KEYBYTES 32U
|
|
||||||
#define crypto_stream_salsa20_NONCEBYTES 8U
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define crypto_stream_salsa20_KEYBYTES 32U
|
||||||
|
SODIUM_EXPORT
|
||||||
|
size_t crypto_stream_salsa20_keybytes(void);
|
||||||
|
|
||||||
|
#define crypto_stream_salsa20_NONCEBYTES 8U
|
||||||
|
SODIUM_EXPORT
|
||||||
|
size_t crypto_stream_salsa20_noncebytes(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
|
const char * crypto_stream_salsa20_primitive(void);
|
||||||
|
|
||||||
SODIUM_EXPORT
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa20(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa20(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user