The main change was v1.57 by djm@:
Randomise the rekey interval a little. Previously, the chacha20 instance would be rekeyed every 1.6MB. This makes it happen at a random point somewhere in the 1-2MB range.
MFC after: 2 weeks
Differential D36088
arc4random(3): Reduce diff with OpenBSD. delphij on Aug 9 2022, 6:48 AM. Authored by Tags None Referenced Files
Details
The main change was v1.57 by djm@: Randomise the rekey interval a little. Previously, the chacha20 instance would be rekeyed every 1.6MB. This makes it happen at a random point somewhere in the 1-2MB range. MFC after: 2 weeks
Diff Detail
Event TimelineComment Actions r1.56 -- Not revalent to us This is mostly for diff reduction; the rs_count value of 1600000 was an arbitrary value. With the change, we would use the entropy obtained from kernel to create a "fuzz" value for the initial rs_count when doing stir, the new rs_count would now be in range of [1048576,2097151]. This makes the stir interval less predicable for a very small cost for each stir. Comment Actions As mentioned in email, we might also consider publishing a seed generation to the VDSO page from Fortuna. |