blob: c83fff32d1309ab795b7e437706d4391a580b0d8 [file] [log] [blame]
Ben Dooks965d7282019-10-09 10:12:56 +01001// SPDX-License-Identifier: GPL-2.0-or-later
2
3extern void *jent_zalloc(unsigned int len);
4extern void jent_zfree(void *ptr);
5extern int jent_fips_enabled(void);
6extern void jent_panic(char *s);
7extern void jent_memcpy(void *dest, const void *src, unsigned int n);
8extern void jent_get_nstime(__u64 *out);
9
10struct rand_data;
11extern int jent_entropy_init(void);
12extern int jent_read_entropy(struct rand_data *ec, unsigned char *data,
13 unsigned int len);
14
15extern struct rand_data *jent_entropy_collector_alloc(unsigned int osr,
16 unsigned int flags);
17extern void jent_entropy_collector_free(struct rand_data *entropy_collector);