jitterentropy.h (50282fd57bcd3525c9d81eef58df8718e4337c6d) | jitterentropy.h (bb897c55042e9330bcf88b4b13cbdd6f9fabdd5e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2 3extern void *jent_zalloc(unsigned int len); 4extern void jent_zfree(void *ptr); | 1// SPDX-License-Identifier: GPL-2.0-or-later 2 3extern void *jent_zalloc(unsigned int len); 4extern void jent_zfree(void *ptr); |
5extern void jent_memcpy(void *dest, const void *src, unsigned int n); | |
6extern void jent_get_nstime(__u64 *out); | 5extern void jent_get_nstime(__u64 *out); |
6extern int jent_hash_time(void *hash_state, __u64 time, u8 *addtl, 7 unsigned int addtl_len, __u64 hash_loop_cnt, 8 unsigned int stuck); 9int jent_read_random_block(void *hash_state, char *dst, unsigned int dst_len); |
|
7 8struct rand_data; | 10 11struct rand_data; |
9extern int jent_entropy_init(void); | 12extern int jent_entropy_init(void *hash_state); |
10extern int jent_read_entropy(struct rand_data *ec, unsigned char *data, 11 unsigned int len); 12 13extern struct rand_data *jent_entropy_collector_alloc(unsigned int osr, | 13extern int jent_read_entropy(struct rand_data *ec, unsigned char *data, 14 unsigned int len); 15 16extern struct rand_data *jent_entropy_collector_alloc(unsigned int osr, |
14 unsigned int flags); | 17 unsigned int flags, 18 void *hash_state); |
15extern void jent_entropy_collector_free(struct rand_data *entropy_collector); | 19extern void jent_entropy_collector_free(struct rand_data *entropy_collector); |