Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150814165
D22878.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22878.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 5, 5:51 AM (20 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30873388
Default Alt Text
D22878.diff (1 KB)
Attached To
Mode
D22878: random(4): Flip default Fortuna generator over to Chacha20
Attached
Detach File
Event Timeline
Log In to Comment