aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-02-14Extract RNG tests into a new test moduleNick Mathewson
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.
2019-02-14Extract the common body of our random-int functions into a macroNick Mathewson
This is the second part of refactoring the random-int-in-range code.
2019-02-06Extract numeric CSPRNG functions into a new module.Nick Mathewson
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.
2019-02-06Remove extraneous #if/#endif wrapper in crypto_rand.cNick Mathewson
I don't know how this got here, but this kind of a wrapper only belongs in a header file.
2019-02-06Code for anonymous mappings via mmap() or CreateFileMapping().Nick Mathewson
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.
2019-02-05Merge branch 'maint-0.3.5'Roger Dingledine
2019-02-05Merge branch 'maint-0.3.4' into maint-0.3.5Roger Dingledine
2019-02-05Merge branch 'maint-0.3.3' into maint-0.3.4Roger Dingledine
2019-02-01Update Cargo.lock with new comment; suppress 29244.Nick Mathewson
2019-01-24One more 32-bit clang warningNick Mathewson
2019-01-24Use tt_u64_op() in test_circuitpadding.c to fix compilation warningsNick Mathewson
Fixes bug 29169.
2019-01-23Merge branch 'maint-0.3.5'Nick Mathewson
2019-01-23Log an HSDesc we failed to parse at Debug loglevelrl1987
2019-01-22Merge branch 'bug29122'Nick Mathewson
2019-01-22Fix intermittent failures of test_circuitpadding_wronghop().George Kadianakis
We fix it by disabling the scheduling of actual padding. Fixes #29122.
2019-01-22Merge branch 'maint-0.3.5'Nick Mathewson
2019-01-22Merge branch 'bug29042_035' into maint-0.3.5Nick Mathewson
2019-01-18Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2019-01-18Merge branch 'maint-0.2.9' into maint-0.3.3Nick Mathewson
2019-01-18Merge branch 'maint-0.3.5'Nick Mathewson
2019-01-18Merge branch 'maint-0.3.4' into maint-0.3.5Nick Mathewson
2019-01-18Bump to 0.4.0.1-alpha-devNick Mathewson
2019-01-17Better failure message on stochastic test failuretor-0.4.0.1-alphaNick Mathewson
2019-01-17Speed up the deterministic prng in test_prob_distr, by a lot.Nick Mathewson
Using a single xof object and squeezing it repeatedly should make everything MUCH faster here.
2019-01-17Merge remote-tracking branch 'tor-github/pr/645'Nick Mathewson
2019-01-16Merge branch 'maint-0.3.5'Nick Mathewson
2019-01-16Update and fix a couple of comments in meminfo.cKris Katterjohn
This fixes a typo and also notes that HW_PHYSMEM64 is defined on NetBSD (not just OpenBSD). Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
2019-01-16Use HW_PHYSMEM instead of HW_USERMEM in get_total_system_memory_implKris Katterjohn
The code checked for sysctl being available and HW_PHYSMEM being defined, but HW_USERMEM was actually being used with sysctl instead of HW_PHYSMEM. The case for OpenBSD, etc. use HW_PHYSMEM64 (which is obviously a 64-bit variant of HW_PHYSMEM) and the case for OSX uses HW_MEMSIZE (which appears to be a 64-bit variant of HW_PHYSMEM). Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
2019-01-16Log more messages when failing to decode RSA keysNick Mathewson
We log these messages at INFO level, except when we are reading a private key from a file, in which case we log at WARN. This fixes a regression from when we re-wrote our PEM code to be generic between nss and openssl. Fixes bug 29042, bugfix on 0.3.5.1-alpha.
2019-01-16Bump copyright date to 2019Nick Mathewson
2019-01-16Bump copyright date to 2019.Nick Mathewson
2019-01-16Bump to 0.4.0.1-alphaNick Mathewson
2019-01-14Merge remote-tracking branch 'asn-github/adaptive_padding-final'Nick Mathewson
2019-01-14Merge branch 'maint-0.3.5'Nick Mathewson
2019-01-14Rework rep_hist_log_link_protocol_counts()rl1987
2019-01-14Merge remote-tracking branch 'teor/bug29015'Nick Mathewson
2019-01-14Rename TYPE to TRANSPORT in PT STATUS messages.Alexander Færøy
See: https://bugs.torproject.org/28181
2019-01-11Merge branch 'bug28989_squashed'Nick Mathewson
2019-01-11Fix a typorl1987
2019-01-11Fix CID 1442277rl1987
2019-01-11Actually close the stdout pipe on error in process_unix_execKris Katterjohn
When cleaning up after an error in process_unix_exec, the stdin pipe was being double closed instead of closing both the stdin and stdout pipes. This occurred in two places. Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
2019-01-11Merge branch 'maint-0.3.5'Nick Mathewson
2019-01-11Merge remote-tracking branch 'tor-github/pr/563' into maint-0.3.5Nick Mathewson
2019-01-11Include the beginnings of a FAQ about which timer to use.Nick Mathewson
2019-01-11Clarify immutability of global padding machine specs.George Kadianakis
2019-01-11Fix wrong bases.Taylor R Campbell
2019-01-11Add some more type checking.Taylor R Campbell
NOTE: This commit breaks the build, because there was a mistake in an earlier change of exactly the sort that this is meant to detect! I'm leaving it broken for illustration.
2019-01-11Use the distribution abstraction as an abstraction.Taylor R Campbell
2019-01-11Move ceil call back into the geometric sampler.Taylor R Campbell
Test exactly what the geometric sampler returns, because that's what the downstream callers of it are going to use. While here, also assert that the geometric sampler returns a positive integer. (Our geometric distribution is the one suported on {1, 2, 3, ...} that returns the number of trials before the first success, not the one supported on {0, 1, 2, ...} that returns the number of failures before the first success.)
2019-01-11Fix more type redefinition errors.Taylor R Campbell
In file included from ./src/core/or/or_circuit_st.h:12:0, from src/core/or/circuitlist.c:112: ./src/core/or/circuit_st.h:15:39: error: redefinition of typedef ‘circpad_machine_spec_t’ ./src/core/or/circuitpadding.h:572:3: note: previous declaration of ‘circpad_machine_spec_t’ was here ./src/core/or/circuit_st.h:16:40: error: redefinition of typedef ‘circpad_machine_state_t’ ./src/core/or/circuitpadding.h:517:3: note: previous declaration of ‘circpad_machine_state_t’ was here