aboutsummaryrefslogtreecommitdiff
path: root/random/random.c
Commit message (Collapse)AuthorAgeFilesLines
* trans: New random translator.Justus Winter2017-06-031-650/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the Hurd included a translator providing /dev/random and /dev/urandom based on a source copy of the random number generator found in classic GnuPG. The new random translator is using the SHAKE128 algorithm from the SHA-3 family as the underlying cryptographic primitive. Being a sponge construction, it allows the extraction of arbitrary amounts of pseudorandom data. It is continuously fed entropy by hashing system state that is hard to predict. * Makefile (prog-subdirs): Remove 'random'. * NEWS: Update. * random/Makefile: Delete file. * random/TODO: Likewise. * random/gnupg-bithelp.h: Likewise. * random/gnupg-glue.h: Likewise. * random/gnupg-random.c: Likewise. * random/gnupg-random.h: Likewise. * random/gnupg-rmd.h: Likewise. * random/gnupg-rmd160.c: Likewise. * random/random.h: Likewise. * sutils/MAKEDEV.sh (random): Create node. (urandom): The new translator is both secure and non-blocking. Create a link from urandom to random for compatibility with Linux. * trans/Makefile (targets): Add 'random'. * trans/random.c: Move the skeleton of the old random translator here, but replace the PRNG with SHAKE128. Remove all dubious attempts of accounting for entropy. Do not block ever.
* Fix indentationSamuel Thibault2017-01-021-23/+23
|
* Fix message about not being able to request shutdown notificationSamuel Thibault2016-08-301-1/+1
| | | | | | | | It is just a warning, not a fatal error. * libdiskfs/init-startup.c (_diskfs_init_completed): Prefix warning about requesting shutdown nofication with "warning:". * random/random.c (main): Likewise.
* random: satisfy arbitrarily-sized readsJustus Winter2015-11-061-11/+30
| | | | * random/random.c (trivfs_S_io_read): Satisfy arbitrarily-sized reads.
* random: use /servers/startup to register for shutdown notificationsJustus Winter2015-11-061-9/+4
| | | | | * random/random.c (arrange_shutdown_notification): Use the new way to contact the startup server.
* random: improve error handlingJustus Winter2015-11-061-9/+13
| | | | | | * random/random.c (arrange_shutdown_notification): Improve error handling. (main): Display warning if arranging the shutdown notification failed.
* random: fix odd formattingJustus Winter2015-11-061-8/+3
| | | | * random/random.c (trivfs_append_args): Fix odd formatting.
* Revert "random: fix a receiver lookup"Justus Winter2014-11-281-1/+4
| | | | | | | This reverts "8927fbd63e29005ddb9b2c2264046089bf669857". The change mistakenly adds mutators for the `startup' protocol, but the server routine is for the `startup_notify' protocol.
* Prepare the random translator to be merged into the Hurd sourcesJustus Winter2014-06-091-0/+634
Move the random translator to its own subdirectory 'random'. This is the last commit to this repository. Development of the random translator will continue in the main Hurd repository.