Export randombytes helpers

This commit is contained in:
Frank Denis 2013-01-21 12:35:58 -08:00
parent dde2e8086c
commit 137ae007ae
3 changed files with 12 additions and 3 deletions

View File

@ -36,6 +36,7 @@ SODIUM_EXPORT = \
sodium/crypto_verify_16.h \ sodium/crypto_verify_16.h \
sodium/crypto_verify_32.h \ sodium/crypto_verify_32.h \
sodium/randombytes.h \ sodium/randombytes.h \
sodium/salsa20_random.h \
sodium/version.h sodium/version.h
EXTRA_SRC = $(SODIUM_EXPORT) \ EXTRA_SRC = $(SODIUM_EXPORT) \

View File

@ -1,12 +1,20 @@
#ifndef randombytes_devurandom_H #ifndef randombytes_salsa20_random_H
#define randombytes_devurandom_H #define randombytes_salsa20_random_H
#include "salsa20_random.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
extern void randombytes(unsigned char *,unsigned long long); void randombytes(unsigned char *, unsigned long long);
#define randombytes_random salsa20_random
#define randombytes_stir salsa20_random_stir
#define randombytes_uniform salsa20_random_uniform
#define randombytes_buf salsa20_random_buf
#define randombytes_close salsa20_random_close
#ifdef __cplusplus #ifdef __cplusplus
} }