History log of /src/sys/arch/amd64/stand/prekern/prng.c |
Revision | | Date | Author | Comments |
1.5 |
| 04-May-2021 |
khorben | prekern: add warnings upon problems collecting entropy
As submitted on port-amd64@ (part 3/3)
Tested on NetBSD/amd64.
|
1.4 |
| 04-May-2021 |
khorben | prekern: do not choke on bad entropy files
As submitted on port-amd64@ (part 2/3)
Tested on NetBSD/amd64.
|
1.3 |
| 21-May-2020 |
maxv | branches: 1.3.6; Mmh, should check cpuid_level first.
|
1.2 |
| 26-Nov-2017 |
maxv | branches: 1.2.2; I forgot to say in my previous commit that the PRNG is inspired from a conversation with Taylor and Thor on tech-kern@.
(just add a comment)
|
1.1 |
| 26-Nov-2017 |
maxv | Add a PRNG for the prekern, based on SHA512. The formula is basically:
Y0 = SHA512(entropy-file, 256bit rdseed, 64bit rdtsc) Yn+1 = SHA512(256bit lowerhalf(Yn), 256bit rdseed, 64bit rdtsc)
On each round, random values are taken from the higher half of Yn. If rdseed is not available, rdrand is used.
The SHA1 checksum of entropy-file is verified. However, the rndsave_t::data field is not updated by the prekern, because the area is accessed via the read-only view we created in locore. I like this design, so it will have to be updated differently.
|
1.2.2.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.2.2.1 |
| 26-Nov-2017 |
jdolecek | file prng.c was added on branch tls-maxphys on 2017-12-03 11:35:48 +0000
|
1.3.6.1 |
| 13-May-2021 |
thorpej | Sync with HEAD.
|