mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Export randombytes helpers
This commit is contained in:
@@ -36,6 +36,7 @@ SODIUM_EXPORT = \
|
||||
sodium/crypto_verify_16.h \
|
||||
sodium/crypto_verify_32.h \
|
||||
sodium/randombytes.h \
|
||||
sodium/salsa20_random.h \
|
||||
sodium/version.h
|
||||
|
||||
EXTRA_SRC = $(SODIUM_EXPORT) \
|
||||
|
||||
@@ -1,12 +1,20 @@
|
||||
|
||||
#ifndef randombytes_devurandom_H
|
||||
#define randombytes_devurandom_H
|
||||
#ifndef randombytes_salsa20_random_H
|
||||
#define randombytes_salsa20_random_H
|
||||
|
||||
#include "salsa20_random.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user