Page MenuHomeFreeBSD

D22878.1784797313.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D22878.1784797313.diff

Index: head/sys/dev/random/hash.c
===================================================================
--- head/sys/dev/random/hash.c
+++ head/sys/dev/random/hash.c
@@ -68,18 +68,18 @@
_Static_assert(CHACHA_STATELEN == RANDOM_BLOCKSIZE, "");
/*
- * Experimental Chacha20-based PRF for Fortuna keystream primitive. For now,
- * disabled by default. But we may enable it in the future.
+ * Knob to control use of Chacha20-based PRF for Fortuna keystream primitive.
*
* Benefits include somewhat faster keystream generation compared with
- * unaccelerated AES-ICM.
+ * unaccelerated AES-ICM; reseeding is much cheaper than computing AES key
+ * schedules.
*/
-bool random_chachamode __read_frequently = false;
+bool random_chachamode __read_frequently = true;
#ifdef _KERNEL
SYSCTL_BOOL(_kern_random, OID_AUTO, use_chacha20_cipher, CTLFLAG_RDTUN,
&random_chachamode, 0,
- "If non-zero, use the ChaCha20 cipher for randomdev PRF. "
- "If zero, use AES-ICM cipher for randomdev PRF (default).");
+ "If non-zero, use the ChaCha20 cipher for randomdev PRF (default). "
+ "If zero, use AES-ICM cipher for randomdev PRF (12.x default).");
#endif
/* Initialise the hash */

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 23, 9:01 AM (9 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29237411
Default Alt Text
D22878.1784797313.diff (1 KB)

Event Timeline