liboqs
Loading...
Searching...
No Matches
rand.h
Go to the documentation of this file.
1
8#ifndef OQS_RANDOM_H
9#define OQS_RANDOM_H
10
11#include <stdbool.h>
12#include <stddef.h>
13#include <stdint.h>
14
15#include <oqs/common.h>
16
17#if defined(__cplusplus)
18extern "C" {
19#endif
20
22#define OQS_RAND_alg_system "system"
24#define OQS_RAND_alg_openssl "OpenSSL"
25
37
46OQS_API void OQS_randombytes_custom_algorithm(void (*algorithm_ptr)(uint8_t *, size_t));
47
60OQS_API void OQS_randombytes(uint8_t *random_array, size_t bytes_to_read);
61
62#if defined(__cplusplus)
63} // extern "C"
64#endif
65
66#endif // OQS_RANDOM_H
#define OQS_API
Definition common.h:92
OQS_STATUS
Definition common.h:114
OQS_API OQS_STATUS OQS_randombytes_switch_algorithm(const char *algorithm)
OQS_API void OQS_randombytes(uint8_t *random_array, size_t bytes_to_read)
OQS_API void OQS_randombytes_custom_algorithm(void(*algorithm_ptr)(uint8_t *, size_t))