]> sourceware.org Git - newlib-cygwin.git/commit
upstream OpenBSD: arc4random: Randomise the rekey interval a little.
authordjm <djm@openbsd.org>
Sun, 31 Jul 2022 05:10:36 +0000 (05:10 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Sat, 10 Sep 2022 18:59:01 +0000 (20:59 +0200)
commit52a410f9bdd504d94f1e5711ecbf096eaaf9af97
treefb143fd7422d20e17b2dfee0c8824e0ae8d72210
parentf5fece283864fcfe7c690d4e7c1032b616e5d570
upstream OpenBSD: arc4random: 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.

Feedback deraadt@ visa@, ok tb@ visa@

newlib port: Make REKEY_BASE depend on SIZE_MAX
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
newlib/libc/stdlib/arc4random.c
This page took 0.031298 seconds and 5 git commands to generate.