tor/src/common
Nick Mathewson 8cdd8b8353 Fix numerous problems with Tor's weak RNG.
We need a weak RNG in a couple of places where the strong RNG is
both needless and too slow.  We had been using the weak RNG from our
platform's libc implementation, but that was problematic (because
many platforms have exceptionally horrible weak RNGs -- like, ones
that only return values between 0 and SHORT_MAX) and because we were
using it in a way that was wrong for LCG-based weak RNGs.  (We were
counting on the low bits of the LCG output to be as random as the
high ones, which isn't true.)

This patch adds a separate type for a weak RNG, adds an LCG
implementation for it, and uses that exclusively where we had been
using the platform weak RNG.
2013-02-08 16:28:05 -05:00
..
address.c Rename log() to tor_log() for logging 2013-02-01 15:43:37 -05:00
address.h Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
aes.c Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
aes.h Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
ciphers.inc Change our ciphersuite list to match ff8 2012-05-15 15:25:54 -04:00
compat.c Fix numerous problems with Tor's weak RNG. 2013-02-08 16:28:05 -05:00
compat.h Fix numerous problems with Tor's weak RNG. 2013-02-08 16:28:05 -05:00
compat_libevent.c Rename log() to tor_log() for logging 2013-02-01 15:43:37 -05:00
compat_libevent.h Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
container.c Rename *_isin to *_contains 2013-01-16 16:57:11 -05:00
container.h Rename *_isin to *_contains 2013-01-16 16:57:11 -05:00
crypto.c Fix numerous problems with Tor's weak RNG. 2013-02-08 16:28:05 -05:00
crypto.h Fix numerous problems with Tor's weak RNG. 2013-02-08 16:28:05 -05:00
crypto_curve25519.c Tolerate curve25519 backends where the high bit of the pk isn't ignored 2013-02-07 14:09:01 -05:00
crypto_curve25519.h Fix compilation with --disable-curve25519 option 2013-02-04 11:32:55 -05:00
crypto_format.c Fix compilation with --disable-curve25519 option 2013-02-04 11:32:55 -05:00
di_ops.c Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
di_ops.h Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
get_mozilla_ciphers.py Change our ciphersuite list to match ff8 2012-05-15 15:25:54 -04:00
include.am Fix compilation with --disable-curve25519 option 2013-02-04 11:32:55 -05:00
log.c Merge remote-tracking branch 'public/easy_ratelim' 2013-02-07 17:13:51 -05:00
Makefile.nmake Add ntor-related modules to the Makefiles.nmake 2013-01-17 15:53:36 -05:00
memarea.c Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
memarea.h Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
mempool.c Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
mempool.h Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
procmon.c Rename log() to tor_log() for logging 2013-02-01 15:43:37 -05:00
procmon.h Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
torgzip.c Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
torgzip.h Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
torint.h Merge branch '024_msvc_squashed' 2013-01-16 22:32:12 -05:00
torlog.h Merge remote-tracking branch 'public/easy_ratelim' 2013-02-07 17:13:51 -05:00
tortls.c Rename log() to tor_log() for logging 2013-02-01 15:43:37 -05:00
tortls.h Update the copyright date to 201. 2013-01-16 01:54:56 -05:00
util.c Fix numerous problems with Tor's weak RNG. 2013-02-08 16:28:05 -05:00
util.h Fix numerous problems with Tor's weak RNG. 2013-02-08 16:28:05 -05:00
util_codedigest.c Resolve about 24 DOCDOCs 2012-06-05 00:17:54 -04:00