crypto_entropy_rdrand.h 433 B

123456789101112131415
  1. #ifndef CRYPTO_ENTROPY_RDRAND_H_
  2. #define CRYPTO_ENTROPY_RDRAND_H_
  3. #include <stddef.h>
  4. /**
  5. * generate_seed_rdrand(buf, len):
  6. * Fill the ${buf} buffer with values from RDRAND. This implementation uses
  7. * the RDRAND instruction, and should only be used if CPUSUPPORT_X86_RDRAND is
  8. * defined and cpusupport_x86_rdrand() returns nonzero.
  9. */
  10. int generate_seed_rdrand(unsigned int *, size_t);
  11. #endif /* !CRYPTO_ENTROPY_RDRAND_H_ */