blob: b7397b617ef055ff039c62df31a423798e911014 [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);
Ben Dooks965d7282019-10-09 10:12:56 +01005extern void jent_panic(char *s);
6extern void jent_memcpy(void *dest, const void *src, unsigned int n);
7extern void jent_get_nstime(__u64 *out);
8
9struct rand_data;
10extern int jent_entropy_init(void);
11extern int jent_read_entropy(struct rand_data *ec, unsigned char *data,
12 unsigned int len);
13
14extern struct rand_data *jent_entropy_collector_alloc(unsigned int osr,
15 unsigned int flags);
16extern void jent_entropy_collector_free(struct rand_data *entropy_collector);