Packages

Post-Quantum Cryptography NIF based on PQClean for Erlang and Elixir

Current section

Files

Jump to
pqclean c_deps PQClean common randombytes.h
Raw

c_deps/PQClean/common/randombytes.h

#ifndef PQCLEAN_RANDOMBYTES_H
#define PQCLEAN_RANDOMBYTES_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#ifdef _WIN32
/* Load size_t on windows */
#include <crtdefs.h>
#else
#include <unistd.h>
#endif /* _WIN32 */
/*
* Write `n` bytes of high quality random bytes to `buf`
*/
#define randombytes PQCLEAN_randombytes
int randombytes(uint8_t *output, size_t n);
#ifdef __cplusplus
}
#endif
#endif /* PQCLEAN_RANDOMBYTES_H */