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

Open
opened 2022-04-10 07:35:42 -05:00 by oittaa · 0 comments
oittaa commented 2022-04-10 07:35:42 -05:00 (Migrated from github.com)

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!

### Prerequisites * [x] Checked the developer manual * [x] Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=repo%3Alibtom%2Flibtomcrypt * [x] Checked that your issue isn't related to TomsFastMath's limitation that PK operations can by default only be done with max. 2048bit keys ### 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](https://man7.org/linux/man-pages/man3/getentropy.3.html), [OpenBSD](https://man.openbsd.org/getentropy), and [FreeBSD](https://www.freebsd.org/cgi/man.cgi?query=getentropy&sektion=3&apropos=0&manpath=FreeBSD+13.0-RELEASE+and+Ports) 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!
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libtom/libtomcrypt#589
No description provided.