tls_rng.h 456 B

123456789101112
  1. /* Software DRBG for the ring-3 TLS client: SHA-256 in counter mode, lazily
  2. * seeded from RDTSC jitter, the tick counter and the NIC MAC.
  3. *
  4. * Deliberately simple: good enough for unique handshake randoms and
  5. * ephemeral X25519 keys, but NOT strong against a determined attacker
  6. * (comparable to the rest of the phase-A "trust everyone" trade-off). */
  7. #ifndef TLS_RNG_H
  8. #define TLS_RNG_H
  9. void tls_random(unsigned char *out, unsigned int len);
  10. #endif