18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciextern void *jent_zalloc(unsigned int len); 48c2ecf20Sopenharmony_ciextern void jent_zfree(void *ptr); 58c2ecf20Sopenharmony_ciextern int jent_fips_enabled(void); 68c2ecf20Sopenharmony_ciextern void jent_panic(char *s); 78c2ecf20Sopenharmony_ciextern void jent_memcpy(void *dest, const void *src, unsigned int n); 88c2ecf20Sopenharmony_ciextern void jent_get_nstime(__u64 *out); 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_cistruct rand_data; 118c2ecf20Sopenharmony_ciextern int jent_entropy_init(void); 128c2ecf20Sopenharmony_ciextern int jent_read_entropy(struct rand_data *ec, unsigned char *data, 138c2ecf20Sopenharmony_ci unsigned int len); 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciextern struct rand_data *jent_entropy_collector_alloc(unsigned int osr, 168c2ecf20Sopenharmony_ci unsigned int flags); 178c2ecf20Sopenharmony_ciextern void jent_entropy_collector_free(struct rand_data *entropy_collector); 18