XenevaOS
Loading...
Searching...
No Matches
XenevaOS
Ports
mbedtls
library
entropy_poll.h
Go to the documentation of this file.
1
6
/*
7
* Copyright The Mbed TLS Contributors
8
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9
*/
10
#ifndef MBEDTLS_ENTROPY_POLL_H
11
#define MBEDTLS_ENTROPY_POLL_H
12
13
#include "
mbedtls/build_info.h
"
14
15
#include <stddef.h>
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
21
/*
22
* Default thresholds for built-in sources, in bytes
23
*/
24
#define MBEDTLS_ENTROPY_MIN_PLATFORM 32
25
#if !defined(MBEDTLS_ENTROPY_MIN_HARDWARE)
26
#define MBEDTLS_ENTROPY_MIN_HARDWARE 32
27
#endif
28
29
#if !defined(MBEDTLS_NO_PLATFORM_ENTROPY)
33
int
mbedtls_platform_entropy_poll
(
void
*
data
,
34
unsigned
char
*output,
size_t
len
,
size_t
*olen);
35
#endif
36
37
#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
46
int
mbedtls_hardware_poll(
void
*
data
,
47
unsigned
char
*output,
size_t
len
,
size_t
*olen);
48
#endif
49
50
#if defined(MBEDTLS_ENTROPY_NV_SEED)
56
int
mbedtls_nv_seed_poll(
void
*
data
,
57
unsigned
char
*output,
size_t
len
,
size_t
*olen);
58
#endif
59
60
#ifdef __cplusplus
61
}
62
#endif
63
64
#endif
/* entropy_poll.h */
mbedtls_platform_entropy_poll
int mbedtls_platform_entropy_poll(void *data, unsigned char *output, size_t len, size_t *olen)
Platform-specific entropy poll callback.
len
size_t len
Definition
initial.c:23
data
void * data
Definition
kthread.h:30
build_info.h
Build-time configuration info.
Generated by
1.9.8