summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* When readding chans, check correct chan's sched_heap_idxbug29508Matt Traudt2019-02-14
|
* Merge branch 'tor-github/pr/702'HEADmasterDavid Goulet2019-02-14
|\
| * Add whitebox test for the long-output optimization of fast_rngNick Mathewson2019-02-14
| |
| * Add test for crypto_fast_rng_get_double().Nick Mathewson2019-02-14
| |
| * Add a test-rng program so we can pipe to dieharder.Nick Mathewson2019-02-14
| |
| * Add a benchmark for our several PRNGs.Nick Mathewson2019-02-14
| |
| * Implement a fast aes-ctr prngNick Mathewson2019-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This module is currently implemented to use the same technique as libottery (later used by the bsds' arc4random replacement), using AES-CTR-256 as its underlying stream cipher. It's backtracking- resistant immediately after each call, and prediction-resistant after a while. Here's how it works: We generate psuedorandom bytes using AES-CTR-256. We generate BUFLEN bytes at a time. When we do this, we keep the first SEED_LEN bytes as the key and the IV for our next invocation of AES_CTR, and yield the remaining BUFLEN - SEED_LEN bytes to the user as they invoke the PRNG. As we yield bytes to the user, we clear them from the buffer. Every RESEED_AFTER times we refill the buffer, we mix in an additional SEED_LEN bytes from our strong PRNG into the seed. If the user ever asks for a huge number of bytes at once, we pull SEED_LEN bytes from the PRNG and use them with our stream cipher to fill the user's request.
| * Extract RNG tests into a new test moduleNick Mathewson2019-02-14
| | | | | | | | | | test_crypto.c is pretty big; it wouldn't hurt to split it up some more before I start adding stuff to the PRNG tests.
| * Extract the common body of our random-int functions into a macroNick Mathewson2019-02-14
| | | | | | | | This is the second part of refactoring the random-int-in-range code.
| * Extract numeric CSPRNG functions into a new module.Nick Mathewson2019-02-06
| | | | | | | | | | Some of the code for getting a random value within a range wants to be shared between crypto_rand() and the new crypto_fast_rng() code.
| * Remove extraneous #if/#endif wrapper in crypto_rand.cNick Mathewson2019-02-06
| | | | | | | | | | I don't know how this got here, but this kind of a wrapper only belongs in a header file.
| * Code for anonymous mappings via mmap() or CreateFileMapping().Nick Mathewson2019-02-06
| | | | | | | | | | | | | | Using an anonymous mmap() is a good way to get pages that we can set kernel-level flags on, like minherit() or madvise() or mlock(). We're going to use that so that we can make uninheritable locked pages to store PRNG data.
* | Merge branch 'maint-0.3.5'George Kadianakis2019-02-14
|\ \
| * \ Merge branch 'tor-github/pr/689' into maint-0.3.5George Kadianakis2019-02-14
| |\ \
| | * | Changes file for ticket29026.Nick Mathewson2019-02-08
| | | |
| | * | Add more openssl includes to fix no-deprecated compilationNick Mathewson2019-02-08
| | | | | | | | | | | | | | | | Closes ticket 29026; patch from Mangix.
| | * | Fix compilation when openssl is compiled without engine support.Nick Mathewson2019-02-08
| | | | | | | | | | | | | | | | Patch from Mangix. Closes part of ticket 29026.
* | | | Merge branch 'maint-0.3.5'George Kadianakis2019-02-14
|\ \ \ \ | |/ / /
| * | | Merge branch 'tor-github/pr/536' into maint-0.3.5George Kadianakis2019-02-14
| |\ \ \
* | \ \ \ Merge remote-tracking branch 'tor-github/pr/699'Nick Mathewson2019-02-13
|\ \ \ \ \
| * | | | | changes: Add changes file for #26698juga02019-02-13
| | | | | |
| * | | | | dirvote: Add the bandwidth file digest in the votejuga02019-02-13
| | | | | |
| * | | | | test: Add test to get the digest of a bw filejuga02019-02-13
| | | | | |
| * | | | | bwauth: Add function to get the digest of a bw filejuga02019-02-13
| | | | | |
* | | | | | Merge remote-tracking branch 'tor-github/pr/674'Nick Mathewson2019-02-13
|\ \ \ \ \ \
| * | | | | | Use RFC5737-compliant example IP addresses in manpage when describing MapAddressrl19872019-01-30
| | | | | | |
* | | | | | | Merge branch 'maint-0.3.5'David Goulet2019-02-13
|\ \ \ \ \ \ \ | | |_|/ / / / | |/| | | | |
| * | | | | | Merge branch 'tor-github/pr/650' into maint-0.3.5David Goulet2019-02-13
| |\ \ \ \ \ \
* | \ \ \ \ \ \ Merge branch 'tor-github/pr/651'David Goulet2019-02-13
|\ \ \ \ \ \ \ \ | |_|_|_|/ / / / |/| | | | | | |
| * | | | | | | Merge branch 'ticket28668_035' into ticket28668_040Nick Mathewson2019-01-23
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | |
| | * | | | | | Another case of possible gmtime angst.Nick Mathewson2019-01-23
| | | | | | | |
| * | | | | | | Merge branch 'ticket28668_035' into ticket28668_040Nick Mathewson2019-01-23
| |\ \ \ \ \ \ \ | | |/ / / / / /
| | * | | | | | test: Fix a warning underflow in rend_cache/cleanDavid Goulet2019-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because the test is adding entries to the "rend_cache" directly, the rend_cache_increment_allocation() was never called which made the rend_cache_clean() call trigger that underflow warning: rend_cache/clean: [forking] Nov 29 09:55:04.024 [warn] rend_cache_decrement_allocation(): Bug: Underflow in rend_cache_decrement_allocation (on Tor 0.4.0.0-alpha-dev 2240fe63feb9a8cf) The test is still good and valid. Fixes #28660 Signed-off-by: David Goulet <dgoulet@torproject.org>
| | * | | | | | Capture more BUG warnings in util/time testNick Mathewson2019-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are ones that happen on windows only. Fixes bug 29161.
| | * | | | | | If address/get_if_addrs6 can't findipv6, log WARN, not ERRNick Mathewson2019-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes 29160, and allows 28668 (treating ERR logs as test failures) to procede.
| * | | | | | | Fix a LOG_ERR message from test_pt.cNick Mathewson2019-01-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes an instance of ticket28668.
| * | | | | | | Merge branch 'ticket28668_035' into ticket28668_040Nick Mathewson2019-01-16
| |\ \ \ \ \ \ \ | | |/ / / / / /
| | * | | | | | Fail any unit test that causes an unhandled LD_BUG or LOG_ERRNick Mathewson2019-01-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes ticket 28668.
* | | | | | | | Merge branch 'tor-github/pr/690'David Goulet2019-02-12
|\ \ \ \ \ \ \ \
| * | | | | | | | Add release note for bug 29150Peter Gerber2019-02-02
| | | | | | | | |
| * | | | | | | | Allow getsockopt(…, SOL_SOCKET, SO_ACCEPTCONN, …) in sandboxPeter Gerber2019-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SO_ACCEPTCONN checks whether socket listening is enabled and is used ever since 9369152aae9527cc3764 has been merged. Closes ticket #29150
* | | | | | | | | Merge branch 'tor-github/pr/671'David Goulet2019-02-12
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | On windows, if we fail to load a consensus and it has a CRLF, retry.Nick Mathewson2019-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 28614; bugfix on 0.4.0.1-alpha when we started mmapping the consensus.
| * | | | | | | | | Write consensus files in binary modeNick Mathewson2019-01-29
| | |_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will help us out on windows now that we mmap files. Fixes part of ticket 28614.
* | | | | | | | | Merge branch 'maint-0.3.5'Nick Mathewson2019-02-12
|\ \ \ \ \ \ \ \ \ | | |_|_|_|/ / / / | |/| | | | | | |
| * | | | | | | | Merge branch 'maint-0.3.4' into maint-0.3.5Nick Mathewson2019-02-12
| |\ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson2019-02-12
| | |\ \ \ \ \ \ \ \
| | | * \ \ \ \ \ \ \ Merge branch 'maint-0.2.9' into maint-0.3.3Nick Mathewson2019-02-12
| | | |\ \ \ \ \ \ \ \
| | | | * | | | | | | | Update geoip and geoip6 to the February 5 2019 database.Karsten Loesing2019-02-12
| | | | | | | | | | | |
* | | | | | | | | | | | Merge branch 'maint-0.3.5'Nick Mathewson2019-02-12
|\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / /