zero_entropy.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #include <inttypes.h>
29 #include <stddef.h>
30 
41 #if !defined(CONFIG_KCONFIG_USEMODULE_ENTROPY_SOURCE_ZERO_ENTROPY) || defined(DOXYGEN)
42 #ifndef CONFIG_ENTROPY_SOURCE_ZERO_ENTROPY_HMIN
43 #define CONFIG_ENTROPY_SOURCE_ZERO_HMIN (58982)
44 #endif
45 
51 #ifndef CONFIG_ENTROPY_SOURCE_ZERO_HEALTH_TEST
52 #define CONFIG_ENTROPY_SOURCE_ZERO_HEALTH_TEST 1
53 #endif
54 
62 #ifndef CONFIG_ENTROPY_SOURCE_ZERO_COND
63 #define CONFIG_ENTROPY_SOURCE_ZERO_COND 0
64 #endif
65 #endif /* !CONFIG_KCONFIG_USEMODULE_ENTROPY_SOURCE_ZERO_ENTROPY || DOXYGEN */
74 
84 int entropy_source_zero_get(uint8_t *buf, size_t len);
85 
86 #ifdef __cplusplus
87 }
88 #endif
89 
int entropy_source_zero_get(uint8_t *buf, size_t len)
Generates zeros.
int entropy_source_zero_init(void)
Initializes test structures, if tests are enabled.
Adds include for missing inttype definitions.