libtom / libtomcrypt

LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.
https://www.libtom.net
Other
1.55k stars 457 forks source link

Wishlist: Use getentropy() in rng_get_bytes.c if available #589

Open oittaa opened 2 years ago

oittaa commented 2 years ago

Prerequisites

Description

It would be great if you supported getentropy() in https://github.com/libtom/libtomcrypt/blob/develop/src/prngs/rng_get_bytes.c

It's found at least in modern Linux, OpenBSD, and FreeBSD based operating systems. It blocks reads until the random pool is initialized and after that "it just works" without complicated error checks. Thanks for the great library!