Loading...
Searching...
No Matches
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
22#ifndef ENTROPY_SOURCE_ZERO_ENTROPY_H
23#define ENTROPY_SOURCE_ZERO_ENTROPY_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#include <inttypes.h>
30#include <stddef.h>
31
42#if !defined(CONFIG_KCONFIG_USEMODULE_ENTROPY_SOURCE_ZERO_ENTROPY) || defined(DOXYGEN)
43#ifndef CONFIG_ENTROPY_SOURCE_ZERO_ENTROPY_HMIN
44#define CONFIG_ENTROPY_SOURCE_ZERO_HMIN (58982)
45#endif
46
52#ifndef CONFIG_ENTROPY_SOURCE_ZERO_HEALTH_TEST
53#define CONFIG_ENTROPY_SOURCE_ZERO_HEALTH_TEST 1
54#endif
55
63#ifndef CONFIG_ENTROPY_SOURCE_ZERO_COND
64#define CONFIG_ENTROPY_SOURCE_ZERO_COND 0
65#endif
66#endif /* !CONFIG_KCONFIG_USEMODULE_ENTROPY_SOURCE_ZERO_ENTROPY || DOXYGEN */
75
85int entropy_source_zero_get(uint8_t *buf, size_t len);
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif /* ENTROPY_SOURCE_ZERO_ENTROPY_H */
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.