| 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_GCD_H |
| 21 | #define JITTERENTROPY_GCD_Hcxx . . $ `lib/jitterentropy-gcd.h:21:9`! |
| 22 | |
| 23 | #include "jitterentropy-internal.h"cxx . . $ `<file>/lib/jitterentropy-internal.h`/ |
| 24 | |
| 25 | #ifdef __cplusplus |
| 26 | extern "C" |
| 27 | { |
| 28 | #endif |
| 29 | |
| 30 | JENT_PRIVATE_STATICcxx . . $ `jitterentropy.h:153:9`! |
| 31 | int jent_gcd_analyzecxx . . $ jent_gcd_analyze(4b2cf5631264baec).(uint64_tcxx . . $ uint64_t# *delta_history, size_t nelem, size_t osr); |
| 32 | JENT_PRIVATE_STATICcxx . . $ `jitterentropy.h:153:9`! |
| 33 | uint64_tcxx . . $ uint64_t# *jent_gcd_initcxx . . $ jent_gcd_init(9087c41a63d875fd).(size_t nelem); |
| 34 | JENT_PRIVATE_STATICcxx . . $ `jitterentropy.h:153:9`! |
| 35 | void jent_gcd_finicxx . . $ jent_gcd_fini(18fbe3e454f5ef99).(uint64_tcxx . . $ uint64_t# *delta_history, size_t nelem); |
| 36 | JENT_PRIVATE_STATICcxx . . $ `jitterentropy.h:153:9`! |
| 37 | int jent_gcd_getcxx . . $ jent_gcd_get(b8664ca4beff78c9).(uint64_tcxx . . $ uint64_t# *value); |
| 38 | JENT_PRIVATE_STATICcxx . . $ `jitterentropy.h:153:9`! |
| 39 | int jent_gcd_selftestcxx . . $ jent_gcd_selftest(b126dc7c1de90089).(void); |
| 40 | |
| 41 | /* Watch for common adjacent GCD values */ |
| 42 | #define jent_gcd_add_valuecxx . . $ `lib/jitterentropy-gcd.h:42:9`!(delta_history, delta, idx) \ |
| 43 | delta_history[idx] = delta |
| 44 | |
| 45 | #ifdef __cplusplus |
| 46 | } |
| 47 | #endif |
| 48 | |
| 49 | #endif /* JITTERENTROPY_GCD_H */ |