zero_entropy.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2020 HAW Hamburg
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #include <inttypes.h>
26 #include <stddef.h>
27 
38 #if !defined(CONFIG_KCONFIG_USEMODULE_ENTROPY_SOURCE_ZERO_ENTROPY) || defined(DOXYGEN)
39 #ifndef CONFIG_ENTROPY_SOURCE_ZERO_ENTROPY_HMIN
40 #define CONFIG_ENTROPY_SOURCE_ZERO_HMIN (58982)
41 #endif
42 
48 #ifndef CONFIG_ENTROPY_SOURCE_ZERO_HEALTH_TEST
49 #define CONFIG_ENTROPY_SOURCE_ZERO_HEALTH_TEST 1
50 #endif
51 
59 #ifndef CONFIG_ENTROPY_SOURCE_ZERO_COND
60 #define CONFIG_ENTROPY_SOURCE_ZERO_COND 0
61 #endif
62 #endif /* !CONFIG_KCONFIG_USEMODULE_ENTROPY_SOURCE_ZERO_ENTROPY || DOXYGEN */
71 
81 int entropy_source_zero_get(uint8_t *buf, size_t len);
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
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.