Up to [cvs.NetBSD.org] / src / sys / arch / amd64 / stand / prekern
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.3.6.1 / (download) - annotate - [select for diffs], Thu May 13 00:47:22 2021 UTC (2 years ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.3: +13 -3
lines
Diff to previous 1.3 (colored) next main 1.4 (colored)
Sync with HEAD.
Revision 1.5 / (download) - annotate - [select for diffs], Tue May 4 21:13:38 2021 UTC (2 years, 1 month ago) by khorben
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2,
netbsd-10-base,
netbsd-10,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
HEAD
Changes since 1.4: +7 -1
lines
Diff to previous 1.4 (colored)
prekern: add warnings upon problems collecting entropy As submitted on port-amd64@ (part 3/3) Tested on NetBSD/amd64.
Revision 1.4 / (download) - annotate - [select for diffs], Tue May 4 21:10:25 2021 UTC (2 years, 1 month ago) by khorben
Branch: MAIN
Changes since 1.3: +7 -3
lines
Diff to previous 1.3 (colored)
prekern: do not choke on bad entropy files As submitted on port-amd64@ (part 2/3) Tested on NetBSD/amd64.
Revision 1.3 / (download) - annotate - [select for diffs], Thu May 21 08:20:25 2020 UTC (3 years ago) by maxv
Branch: MAIN
CVS Tags: thorpej-futex-base,
thorpej-futex,
thorpej-cfargs-base,
thorpej-cfargs
Branch point for: thorpej-i2c-spi-conf
Changes since 1.2: +11 -6
lines
Diff to previous 1.2 (colored)
Mmh, should check cpuid_level first.
Revision 1.2.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:35:48 2017 UTC (5 years, 6 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.2.2.1: +213 -0
lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)
update from HEAD
Revision 1.2.2.1, Sun Nov 26 11:08:34 2017 UTC (5 years, 6 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.2: +0 -213
lines
FILE REMOVED
file prng.c was added on branch tls-maxphys on 2017-12-03 11:35:48 +0000
Revision 1.2 / (download) - annotate - [select for diffs], Sun Nov 26 11:08:34 2017 UTC (5 years, 6 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202,
phil-wifi-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
phil-wifi,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
netbsd-9-base,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
isaki-audio2-base,
isaki-audio2,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Branch point for: tls-maxphys
Changes since 1.1: +1 -0
lines
Diff to previous 1.1 (colored)
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)
Revision 1.1 / (download) - annotate - [select for diffs], Sun Nov 26 11:01:09 2017 UTC (5 years, 6 months ago) by maxv
Branch: MAIN
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.