summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-30change credit by requestNick Mathewson
2015-12-29Merge branch 'feature17796_squashed'Nick Mathewson
2015-12-29Remove the (now-unused) digest_algorithm_bitfield_tNick Mathewson
2015-12-29When allocating a crypto_digest_t, allocate no more bytes than neededNick Mathewson
Previously we would allocate as many bytes as we'd need for a keccak--even when we were only calculating SHA1. Closes ticket 17796.
2015-12-29Use timingsafe_memcmp() where available.Nick Mathewson
See ticket 17944; patch from "logan".
2015-12-23changes file correctionNick Mathewson
2015-12-22Remove config.log from CLEANFILESNick Mathewson
Fixes bug 17924; bugfix on 0.2.4.1-alpha. In ddf5020ea8d51, we added config.log to CLEANFILES in doc/Makefile.am so that distcheck would be happy about the presence of doc/config.log. But when we moved to nonrecursie makefiles in 2a4a1496241d6, we accidentally left that filename unchanged, so that it referred to config.log instead. Patch from cypherpunks.
2015-12-22Merge branch 'maint-0.2.7'Nick Mathewson
2015-12-22Remove extraneous #endif in configure.acNick Mathewson
This will fix the detection of struct in6_addr.s6_addr32 and others Found and fixed by cypherpunks; bug 17923; bugfix on f948caad7b5bd
2015-12-22document minimum heartbeatperiod; bug 15638.Nick Mathewson
2015-12-22Remove extra quotes from log messageNick Mathewson
Bug 17843; fix on ddc65e2b
2015-12-22Add an unreachable line to make the compiler happyNick Mathewson
2015-12-21whoops; really fix the 32-bit buildsNick Mathewson
2015-12-21Fix a couple of jenkins issues from 12538.Nick Mathewson
2015-12-21Merge remote-tracking branch 'public/bug12538_merged'Nick Mathewson
2015-12-20add libkeccak-tiny to .gitignoreNick Mathewson
2015-12-20Appease "make check-spaces"Nick Mathewson
2015-12-20Repair "make distcheck".Nick Mathewson
2015-12-20Merge remote-tracking branch 'yawning/feature17783_take2'Nick Mathewson
2015-12-20Add the randomized large buffer test for SHA-3 incremental hashing.Yawning Angel
This creates a random 100 KiB buffer, and incrementally hashes (SHA3-512) between 1 and 5 * Rate bytes in a loop, comparing the running digest with the equivalent one shot call from the start of the buffer.
2015-12-19Add `crypto_xof_t` and assorted routines, backed by SHAKE256.Yawning Angel
This is an eXtendable-Output Function with the following claimed security strengths against *all* adversaries: Collision: min(d/2, 256) Preimage: >= min(d, 256) 2nd Preimage: min(d, 256) where d is the amount of output used, in bits.
2015-12-19Add the SHA-3 hash functions to common/crypto.h.Yawning Angel
* DIGEST_SHA3_[256,512] added as supported algorithms, which do exactly what is said on the tin. * test/bench now benchmarks all of the supported digest algorithms, so it's possible to see just how slow SHA-3 is, though the message sizes could probably use tweaking since this is very dependent on the message size vs the SHA-3 rate.
2015-12-19Use tor specific headers and memwipe() instead of memset_s(), and build.Yawning Angel
This is where things get tor specific. It's just replacing stdint.h and memset_s with the tor compat code so going back is trivial...
2015-12-19Expose an incremental API in addition to the one-shot routines.Yawning Angel
The digest routines use init/update/sum, where sum will automatically copy the internal state to support calculating running digests. The XOF routines use init/absorb/squeeze, which behave exactly as stated on the tin.
2015-12-18Clean import of keccak-tiny (https://github.com/coruus/keccak-tiny)Yawning Angel
As of commit: 64b6647514212b76ae7bca0dea9b7b197d1d8186
2015-12-18fix routerlist/pick_directory_server_impl in light of 12538Nick Mathewson
2015-12-18Fix config/directory_fetch after 12538 mergeNick Mathewson
2015-12-18Fix nodelist/node_is_dir test wrt 12538.Nick Mathewson
2015-12-18Merge branch 'feature12538_028_01_squashed'Nick Mathewson
2015-12-18mark a variable unused to fix a warning.Nick Mathewson
2015-12-18Use dir_server_mode() in find_dl_schedule()David Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-12-18Restore semantics of advertise vs serve on directory cacheingNick Mathewson
When we are low on accounted bandwidth, we stop advertising that we're a directory, but we will continue to answer directory requests, just as before.
2015-12-18Change dataflow on generating 'dir-cache' flag.Nick Mathewson
Convention is that router_dump_router_to_string() should look at its input "router", which should be generated by router_build_fresh_descirptor().
2015-12-18Assert rs are added in con and con_md testsMatthew Finkel
2015-12-18Automatically generate md-con method vers in testMatthew Finkel
2015-12-18Let make_consensus_method_list be used in testsMatthew Finkel
2015-12-18A router must be a dir cache before it may be HSDirMatthew Finkel
Fixes #15801
2015-12-18{dis,en}abling DirCache is a semantic changeMatthew Finkel
2015-12-18Rebuild descriptor when DirCache is {dis,en}abledMatthew Finkel
2015-12-18Add new DirCache configuration optionMatthew Finkel
This will give relay operators the ability of disabling the caching of directory data. In general, this should not be necessary, but on some lower-resource systems it may beneficial.
2015-12-18Add unit test for router_pick_directory_server_implMatthew Finkel
2015-12-18Client should check if dir server has open dir port or handles tunnelled ↵Matthew Finkel
requests Final piece of prop 237. Closes 12538.
2015-12-18changes file for 17893Nick Mathewson
2015-12-18Stop building and testing Tor twice with distcheckcypherpunks
2015-12-18changes file for 17892Nick Mathewson
2015-12-18Remove an extra space in backtrace version stringcypherpunks
2015-12-18Fix a memory leak in the backtrace testcypherpunks
2015-12-18Log the backtrace when the backtrace test failscypherpunks
2015-12-18Move some more code inside a tortls.c ifdef to fix deadcode warning.Nick Mathewson
2015-12-18Fix an unreached null-pointer deref in connection testsNick Mathewson
This is CID 1343603