Debian Codegraph @

lib/jitterentropy-noise.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2021 - 2026, Stephan Mueller <[email protected]>
3 *
4 * License: see LICENSE file in root directory
5 *
6 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
7 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
8 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF
9 * WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
10 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
11 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
12 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
13 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
14 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
15 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
16 * USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH
17 * DAMAGE.
18 */
19
20 #ifndef JITTERENTROPY_NOISE_H
21 #define JITTERENTROPY_NOISE_H
22
23 #include "jitterentropy-internal.h"
24
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif
29
30 unsigned int jent_measure_jitter_ntg1_memaccess(struct rand_data *ec,
31 uint64_t loop_cnt,
32 uint64_t *ret_current_delta);
33 unsigned int jent_measure_jitter_ntg1_sha3(struct rand_data *ec,
34 uint64_t loop_cnt,
35 uint64_t *ret_current_delta);
36 unsigned int jent_measure_jitter(struct rand_data *ec,
37 uint64_t loop_cnt,
38 uint64_t *ret_current_delta);
39 void jent_random_data(struct rand_data *ec);
40 void jent_read_random_block(struct rand_data *ec, char *dst, size_t dst_len);
41
42 #ifdef __cplusplus
43 }
44 #endif
45
46 #endif /* JITTERENTROPY_NOISE_H */