liboqs
Toggle main menu visibility
Loading...
Searching...
No Matches
rand.h
Go to the documentation of this file.
1
7
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)
18
extern
"C"
{
19
#endif
20
22
#define OQS_RAND_alg_system "system"
24
#define OQS_RAND_alg_openssl "OpenSSL"
25
36
OQS_API
OQS_STATUS
OQS_randombytes_switch_algorithm
(
const
char
*algorithm);
37
46
OQS_API
void
OQS_randombytes_custom_algorithm
(
void
(*algorithm_ptr)(uint8_t *,
size_t
));
47
60
OQS_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
OQS_API
#define OQS_API
Definition
common.h:149
OQS_STATUS
OQS_STATUS
Definition
common.h:171
OQS_randombytes_switch_algorithm
OQS_API OQS_STATUS OQS_randombytes_switch_algorithm(const char *algorithm)
OQS_randombytes
OQS_API void OQS_randombytes(uint8_t *random_array, size_t bytes_to_read)
OQS_randombytes_custom_algorithm
OQS_API void OQS_randombytes_custom_algorithm(void(*algorithm_ptr)(uint8_t *, size_t))
src
common
rand
rand.h
Generated by
1.17.0