NetBSD/sys/netinet
tls 3afd44cf08 First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>.  This change includes
the following:

	An initial cleanup and minor reorganization of the entropy pool
	code in sys/dev/rnd.c and sys/dev/rndpool.c.  Several bugs are
	fixed.  Some effort is made to accumulate entropy more quickly at
	boot time.

	A generic interface, "rndsink", is added, for stream generators to
	request that they be re-keyed with good quality entropy from the pool
	as soon as it is available.

	The arc4random()/arc4randbytes() implementation in libkern is
	adjusted to use the rndsink interface for rekeying, which helps
	address the problem of low-quality keys at boot time.

	An implementation of the FIPS 140-2 statistical tests for random
	number generator quality is provided (libkern/rngtest.c).  This
	is based on Greg Rose's implementation from Qualcomm.

	A new random stream generator, nist_ctr_drbg, is provided.  It is
	based on an implementation of the NIST SP800-90 CTR_DRBG by
	Henric Jungheim.  This generator users AES in a modified counter
	mode to generate a backtracking-resistant random stream.

	An abstraction layer, "cprng", is provided for in-kernel consumers
	of randomness.  The arc4random/arc4randbytes API is deprecated for
	in-kernel use.  It is replaced by "cprng_strong".  The current
	cprng_fast implementation wraps the existing arc4random
	implementation.  The current cprng_strong implementation wraps the
	new CTR_DRBG implementation.  Both interfaces are rekeyed from
	the entropy pool automatically at intervals justifiable from best
	current cryptographic practice.

	In some quick tests, cprng_fast() is about the same speed as
	the old arc4randbytes(), and cprng_strong() is about 20% faster
	than rnd_extract_data().  Performance is expected to improve.

	The AES code in src/crypto/rijndael is no longer an optional
	kernel component, as it is required by cprng_strong, which is
	not an optional kernel component.

	The entropy pool output is subjected to the rngtest tests at
	startup time; if it fails, the system will reboot.  There is
	approximately a 3/10000 chance of a false positive from these
	tests.  Entropy pool _input_ from hardware random numbers is
	subjected to the rngtest tests at attach time, as well as the
	FIPS continuous-output test, to detect bad or stuck hardware
	RNGs; if any are detected, they are detached, but the system
	continues to run.

	A problem with rndctl(8) is fixed -- datastructures with
	pointers in arrays are no longer passed to userspace (this
	was not a security problem, but rather a major issue for
	compat32).  A new kernel will require a new rndctl.

	The sysctl kern.arandom() and kern.urandom() nodes are hooked
	up to the new generators, but the /dev/*random pseudodevices
	are not, yet.

	Manual pages for the new kernel interfaces are forthcoming.
2011-11-19 22:51:18 +00:00
..
accept_filter.h
accf_data.c
accf_http.c
cpu_in_cksum.c
files.ipfilter Defopt the rest of the Ipfilter options and tunables. 2010-10-02 20:07:39 +00:00
files.netinet Add inet4 part of the rfc6056 code contributed by Vlad Balan as part of 2011-09-24 17:18:17 +00:00
icmp6.h Move RTF_ANNOUNCE flag so that it no longer conflicts with RTF_PROTO2. 2011-11-11 15:09:32 +00:00
icmp_private.h
icmp_var.h
if_arp.c Add 3 logging sysctls for arp from freebsd: 2011-08-27 09:05:54 +00:00
if_atm.c udpate license clauses on my code to match the new-style BSD licenses. 2011-02-01 19:40:24 +00:00
if_atm.h udpate license clauses on my code to match the new-style BSD licenses. 2011-02-01 19:40:24 +00:00
if_ether.h
if_inarp.h Move RTF_ANNOUNCE flag so that it no longer conflicts with RTF_PROTO2. 2011-11-11 15:09:32 +00:00
igmp_var.h
igmp.c Retire varargs.h support. Move machine/stdarg.h logic into MI 2011-07-17 20:54:30 +00:00
igmp.h
in4_cksum.c fix assertions 2011-04-25 22:04:32 +00:00
in_cksum.c
in_gif.c Retire varargs.h support. Move machine/stdarg.h logic into MI 2011-07-17 20:54:30 +00:00
in_gif.h
in_ifattach.h
in_offload.c ip_undefer_csum: 2011-04-25 22:11:31 +00:00
in_offload.h undefer csum in looutput. 2011-04-25 22:20:59 +00:00
in_pcb_hdr.h Add inet4 part of the rfc6056 code contributed by Vlad Balan as part of 2011-09-24 17:18:17 +00:00
in_pcb.c Add inet4 part of the rfc6056 code contributed by Vlad Balan as part of 2011-09-24 17:18:17 +00:00
in_pcb.h Add inet4 part of the rfc6056 code contributed by Vlad Balan as part of 2011-09-24 17:18:17 +00:00
in_proto.c *_drain() routines may be called with locks held, so instead of doing 2011-05-03 17:44:30 +00:00
in_proto.h
in_selsrc.c
in_selsrc.h
in_systm.h
in_var.h ip_randomid: make mechanism MP-safe and more modular. 2010-11-05 01:35:57 +00:00
in.c First step of random number subsystem rework described in 2011-11-19 22:51:18 +00:00
in.h
ip6.h
ip_carp.c First step of random number subsystem rework described in 2011-11-19 22:51:18 +00:00
ip_carp.h
ip_ecn.c
ip_ecn.h
ip_encap.c Retire varargs.h support. Move machine/stdarg.h logic into MI 2011-07-17 20:54:30 +00:00
ip_encap.h
ip_etherip.c Retire varargs.h support. Move machine/stdarg.h logic into MI 2011-07-17 20:54:30 +00:00
ip_etherip.h
ip_flow.c After discussion with ad@: it appears that KERNEL_LOCK also protects 2010-04-01 00:24:41 +00:00
ip_icmp.c Retire varargs.h support. Move machine/stdarg.h logic into MI 2011-07-17 20:54:30 +00:00
ip_icmp.h Add MPLS support, proposed on tech-net@ a couple of days ago 2010-06-26 14:24:27 +00:00
ip_id.c First step of random number subsystem rework described in 2011-11-19 22:51:18 +00:00
ip_input.c NULL does not need a cast 2011-08-31 18:31:02 +00:00
ip_mroute.c Use if_addr_init() and if_mcast_op() instead of ifp->if_ioctl(). 2011-10-19 01:52:22 +00:00
ip_mroute.h
ip_output.c redo ip_output.c rev.1.206 and 1.207 differently. PR/43664. 2011-10-31 13:16:01 +00:00
ip_private.h
ip_reass.c Don't increment ip_nfragpackets when failed to allocate fragment queue. 2011-06-27 00:45:50 +00:00
ip_var.h *_drain() routines may be called with locks held, so instead of doing 2011-05-03 17:44:30 +00:00
ip.h Fill in missing IPTOS defines (from Linux/OpenBSD) 2011-07-24 18:06:08 +00:00
Makefile install the header. 2011-09-24 17:54:19 +00:00
pim_var.h
pim.h
raw_ip.c Retire varargs.h support. Move machine/stdarg.h logic into MI 2011-07-17 20:54:30 +00:00
rfc6056.c First step of random number subsystem rework described in 2011-11-19 22:51:18 +00:00
rfc6056.h install the header. 2011-09-24 17:54:19 +00:00
tcp_congctl.c simplify code a little. no functional changes. 2011-04-08 11:15:11 +00:00
tcp_congctl.h - comments 2011-04-14 15:57:02 +00:00
tcp_debug.c
tcp_debug.h
tcp_fsm.h
tcp_input.c First step of random number subsystem rework described in 2011-11-19 22:51:18 +00:00
tcp_output.c simplify a compile-time assertion 2011-04-14 16:08:53 +00:00
tcp_private.h
tcp_sack.c Retire varargs.h support. Move machine/stdarg.h logic into MI 2011-07-17 20:54:30 +00:00
tcp_seq.h
tcp_subr.c First step of random number subsystem rework described in 2011-11-19 22:51:18 +00:00
tcp_timer.c NULL does not need a cast 2011-08-31 18:31:02 +00:00
tcp_timer.h Note units and current value for TCP_DELACK_TICKS. 2011-05-24 18:37:52 +00:00
tcp_usrreq.c Don't allocate resources for vtw until/unless it is enabled. This will 2011-06-06 19:15:43 +00:00
tcp_var.h tcp_reass_unlock: assertion 2011-10-31 12:52:19 +00:00
tcp_vtw.c Retire varargs.h support. Move machine/stdarg.h logic into MI 2011-07-17 20:54:30 +00:00
tcp_vtw.h Be a bit cleaner and reduce the amount of namespace pollution 2011-06-07 22:51:32 +00:00
tcp.h
tcpip.h
udp_private.h
udp_usrreq.c Add inet4 part of the rfc6056 code contributed by Vlad Balan as part of 2011-09-24 17:18:17 +00:00
udp_var.h Add inet4 part of the rfc6056 code contributed by Vlad Balan as part of 2011-09-24 17:18:17 +00:00
udp.h Add inet4 part of the rfc6056 code contributed by Vlad Balan as part of 2011-09-24 17:18:17 +00:00