Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 9b8a9a3a6f57edd02b7c8db14a316e6fab7fa772 35 lines 1.4 kB view raw
1// SPDX-License-Identifier: GPL-2.0-or-later 2 3struct sha3_ctx; 4extern void *jent_kvzalloc(unsigned int len); 5extern void jent_kvzfree(void *ptr, unsigned int len); 6extern void *jent_zalloc(unsigned int len); 7extern void jent_zfree(void *ptr); 8extern void jent_get_nstime(__u64 *out); 9void jent_hash_time(struct sha3_ctx *hash_state, __u64 time, u8 *addtl, 10 unsigned int addtl_len, __u64 hash_loop_cnt, 11 unsigned int stuck); 12void jent_read_random_block(struct sha3_ctx *hash_state, char *dst, 13 unsigned int dst_len); 14 15struct rand_data; 16extern int jent_entropy_init(unsigned int osr, unsigned int flags, 17 struct sha3_ctx *hash_state, 18 struct rand_data *p_ec); 19extern int jent_read_entropy(struct rand_data *ec, unsigned char *data, 20 unsigned int len); 21 22extern struct rand_data * 23jent_entropy_collector_alloc(unsigned int osr, unsigned int flags, 24 struct sha3_ctx *hash_state); 25extern void jent_entropy_collector_free(struct rand_data *entropy_collector); 26 27#ifdef CONFIG_CRYPTO_JITTERENTROPY_TESTINTERFACE 28int jent_raw_hires_entropy_store(__u64 value); 29void jent_testing_init(void); 30void jent_testing_exit(void); 31#else /* CONFIG_CRYPTO_JITTERENTROPY_TESTINTERFACE */ 32static inline int jent_raw_hires_entropy_store(__u64 value) { return 0; } 33static inline void jent_testing_init(void) { } 34static inline void jent_testing_exit(void) { } 35#endif /* CONFIG_CRYPTO_JITTERENTROPY_TESTINTERFACE */