Conrad Meyer 00e0e488a0 random(4): deduplicate explicit_bzero() in harvest
Pull the responsibility for zeroing events, which is general to any
conceivable implementation of a random device algorithm, out of the
algorithm-specific Fortuna code and into the callers.  Most callers
indirect through random_fortuna_process_event(), so add the logic there.
Most callers already explicitly bzeroed the events they provided, so the
logic in Fortuna was mostly redundant.

Add one missing bzero in randomdev_accumulate().  Also, remove a redundant
bzero in the same function -- randomdev_hash_finish() is obliged to bzero
the hash state.

Reviewed by:	delphij
Approved by:	secteam(delphij)
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D20318
2019-05-23 21:02:27 +00:00
..
2019-05-22 15:39:35 +00:00
2019-05-23 19:55:53 +00:00
2019-05-02 12:56:13 +00:00
2019-05-08 19:27:30 +00:00
2019-05-23 20:12:24 +00:00
2019-02-21 01:30:37 +00:00
2019-05-12 06:32:46 +00:00
2019-05-17 15:24:34 +00:00
2019-05-23 20:12:24 +00:00
2019-02-04 21:28:25 +00:00