cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

jitterentropy.h (607B)


      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_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);