
This is a random number generator daemon.

It monitors a hardware random number generator, and supplies entropy
from that to the system kernel's /dev/random machinery.

It is hoped that future contributions will enable entropy gathering
from other sources, such as audio hardware or video hardware or CPU
instruction pointers, to provide entropy even in cases where a true
hardware RNG is not present.

Build instructions
==================

* Export toolchain path to be used for building rng-tools.
	$ export PATH=$PATH:/home/user/toolchain/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin

* Configure the rng-tools for arm64 target using below steps.
	$ ./autogen.sh
	$ ./configure --host=aarch64-linux-gnu --target=arm64

* Build rng-tools.
	$ make

Clean instructions
==================

* Clean the generated binaries and libraries built.
	$ make distclean

Installation instructions
=========================

* Copy the built rngd binary to target and run using below command.
	$ ./rngd --fill-watermark=3300 --no-tpm=1 --verbose

* Note:
	Default entropy watermark: 2048
	Entropy watermark range: 0-4096

Test instructions
=================

* Copy the built rngtest binary to target and execute as below.
  For more details, please refer https://wiki.archlinux.org/title/Rng-tools#Testing_and_usage
	$ ./rngtest -c 1000 </dev/random
	rngtest 5
	Copyright (c) 2004 by Henrique de Moraes Holschuh
	This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

	rngtest: starting FIPS tests...
	rngtest: bits received from input: 20000032
	rngtest: FIPS 140-2 successes: 1000
	rngtest: FIPS 140-2 failures: 0
	rngtest: FIPS 140-2(2001-10-10) Monobit: 0
	rngtest: FIPS 140-2(2001-10-10) Poker: 0
	rngtest: FIPS 140-2(2001-10-10) Runs: 0
	rngtest: FIPS 140-2(2001-10-10) Long run: 0
	rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
	rngtest: input channel speed: (min=206.326; avg=301.337; max=429.428)Kibits/s
	rngtest: FIPS tests speed: (min=32.383; avg=84.780; max=101.997)Mibits/s
	rngtest: Program run time: 65043010 microseconds


Home page:
	http://sourceforge.net/projects/gkernel/

GIT repository:
	git://git.kernel.org/pub/scm/utils/kernel/rng-tools/rng-tools.git

