Module Name: src
Committed By: riastradh
Date: Thu Jul 30 17:26:24 UTC 2020
Modified Files:
src/sys/arch/x86/x86: cpu_rng.c
Log Message:
Cite Cryptography Research evaluation of VIA RNG and give live URL.
(URL verified to be archived in the Internet Archive for posterity)
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/x86/x86/cpu_rng.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/cpu_rng.c
diff -u src/sys/arch/x86/x86/cpu_rng.c:1.18 src/sys/arch/x86/x86/cpu_rng.c:1.19
--- src/sys/arch/x86/x86/cpu_rng.c:1.18 Sat Jul 25 22:10:34 2020
+++ src/sys/arch/x86/x86/cpu_rng.c Thu Jul 30 17:26:23 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_rng.c,v 1.18 2020/07/25 22:10:34 riastradh Exp $ */
+/* $NetBSD: cpu_rng.c,v 1.19 2020/07/30 17:26:23 riastradh Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -228,6 +228,11 @@ cpu_rng_via(uint64_t *out)
* The Cryptography Research paper on the VIA RNG estimates
* 0.75 bits of entropy per output bit and advises users to
* be "even more conservative".
+ *
+ * `Evaluation of VIA C3 Nehemiah Random Number
+ * Generator', Cryptography Research, Inc., February 27,
+ * 2003.
+ * https://www.rambus.com/wp-content/uploads/2015/08/VIA_rng.pdf
*/
return nbytes * NBBY/2;
}