Commit | Line | Data |
---|---|---|
5763fb39 T |
1 | Exrng Daemon |
2 | ======================================================= | |
3 | ||
4 | Description: | |
5 | The exyrng daemon is used to check and fill entropy. | |
6 | By default it opens the "/dev/random" device and "dev/hw_random" device. | |
7 | It requires H/W random driver(/dev/hw_random) for random data. | |
8 | It requires random driver(/dev/random) for entropy | |
9 | ||
10 | Parameters: | |
11 | It will accept the following optional arguments: | |
12 | -b background - become a daemon(default) | |
13 | -f foregrount = do not fork and become a daemon | |
14 | -r <device name> hardware random input device (default: /dev/hw_random) | |
15 | -o <device name> system random output device (default: /dev/random) | |
16 | -h help | |
17 | ||
18 | Return: | |
19 | It will return 0 if all cases succeed otherwise it | |
20 | returns -1: | |
21 | ||
22 | Usage: | |
23 | By init.rc exyrng daemon is automatically executed in booting time. | |
24 | Exyrng daemon should be applied default root permission of user and group | |
25 | To approach a random driver in order to check entropy, the permission is necessary | |
26 | ||
27 | Details: | |
28 | Main loop check for entropy, get random data and feed entropy pool | |
29 | 2048 byte daemon buffer is filled from H/W random driver if buffer is zero. | |
30 | exyrng daemon makes increase 128 bytes of entropy at a time if entropy count is insufficient. | |
31 | ||
32 | Files: | |
33 | README this file | |
34 | LICENSE terms of distribution and reuse(BSD) | |
35 | ||
36 | Android.mk script file, inform about native executable file | |
37 | exyrngd.c exyrng daemon | |
38 | ||
39 | Targets: | |
40 | Exynos |