aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Expand)AuthorAge
* r15790@catbus: nickm | 2007-10-15 11:38:28 -0400••• Fix bug 528: fix memory leak in base32_decode(). While there, also make base32_decode() accept upper-case inputs. svn:r11946 Nick Mathewson2007-10-15
* r15702@catbus: nickm | 2007-10-11 17:29:20 -0400••• Remove a bunch of redundant includes in crypto.c svn:r11885 Nick Mathewson2007-10-11
* bugfix on r11301:•••Fix a minor memory leak whenever we wrote out a file. Bugfix on 0.2.0.7-alpha. svn:r11863 Roger Dingledine2007-10-11
* bugfix on r11298:•••Fix a minor memory leak whenever we parse guards from our state file. Bugfix on 0.2.0.7-alpha. svn:r11862 Roger Dingledine2007-10-11
* r15530@catbus: nickm | 2007-10-04 12:16:27 -0400••• Add a bunch of function documentation; clean up a little code; fix some XXXXs; tag the nonsensical EXTRAINFO_PURPOSE_GENERAL as nonsesnse; note another bit of "do not cache special routers" code to nuke. svn:r11761 Nick Mathewson2007-10-04
* r15512@catbus: nickm | 2007-10-02 16:27:43 -0400••• Make some functions static; remove some dead code. svn:r11750 Nick Mathewson2007-10-02
* r14682@Kushana: nickm | 2007-09-28 15:23:38 -0400••• From little acorns: redo our string and digest hashing code to be faster, since this stuff may be critical-path. svn:r11700 Nick Mathewson2007-09-28
* r15231@catbus: nickm | 2007-09-20 16:04:30 -0400••• Patch from karsten: remove cbc and make unit tests handle aes-ctr-with-iv. svn:r11538 Nick Mathewson2007-09-20
* r14532@Kushana: nickm | 2007-09-20 13:25:38 -0400••• Clean up some macros in aes.c svn:r11537 Nick Mathewson2007-09-20
* r15210@catbus: nickm | 2007-09-20 13:04:05 -0400••• Re-optimize counter-mode: save about 15% on my core2 by (1) not regenerating the entire counter buffer every time we encrypt a block of keystream (2) using the platform-optimized htonl to convert to big-endian (It's a single instruction on 486 and later ) and (3) not even keeping a separate "counter" and "buffer" when the platform is big-endian. The third still needs testing. svn:r11536 Nick Mathewson2007-09-20
* poke at svn until it compiles. nick, you should decide if this•••is what you meant to do. svn:r11529 Roger Dingledine2007-09-20
* r15172@catbus: nickm | 2007-09-19 11:50:02 -0400••• New (untested) code to implement AES-with-IV. Currently, IVs are generated randomly. Once tested, should be (almost) a drop-in replacement for the CBC functions. svn:r11519 Nick Mathewson2007-09-19
* r15171@catbus: nickm | 2007-09-19 11:44:54 -0400••• Switch our AES implementation from "128 bit counter with to 64 bits set to 0" to a proper implementation of counter mode. Also, add an aes_set_iv function to initialize the counter to a nonzero value. svn:r11518 Nick Mathewson2007-09-19
* minor style tweaks•••svn:r11490 Roger Dingledine2007-09-18
* add some crypto/util functions from karsten, as the first•••step of integrating his new hidden service stuff svn:r11489 Roger Dingledine2007-09-18
* r14448@Kushana: nickm | 2007-09-17 14:26:56 -0400••• Unify all of the divergent median/nth-percentile code in container.[ch] svn:r11457 Nick Mathewson2007-09-17
* r14363@Kushana: nickm | 2007-09-08 16:25:45 -0400••• Another round of whitespeace fixes. svn:r11407 Nick Mathewson2007-09-08
* r14359@Kushana: nickm | 2007-09-08 15:07:17 -0400••• Add some generic skew-and-tolerance functions so we can handle time more sanely. svn:r11406 Nick Mathewson2007-09-08
* r14869@catbus: nickm | 2007-08-31 08:49:26 -0400••• Fix a segfault in expand_filename("~"). Found by lindi. svn:r11332 Nick Mathewson2007-08-31
* r14832@catbus: nickm | 2007-08-29 15:00:27 -0400••• Use (and debug) new file-writing functions in order to simplify code that formerly built big strings in RAM. svn:r11301 Nick Mathewson2007-08-29
* r14831@catbus: nickm | 2007-08-29 14:17:42 -0400••• Refactor write_chunks_to_file_impl: break out the "pick a temporary name if it makes sense, and open the right filename" logic and the "close the file and unlink or rename if necessary" logic. This will let us write big files in a smarter way than "Build a big string" or "make a list of chunks", once we get around to using it. svn:r11300 Nick Mathewson2007-08-29
* r14227@Kushana: nickm | 2007-08-27 11:33:28 -0400••• Add a new ClientDNSRejectInternalAddresses option (default: on) to refuse to believe that any address can map to or from an internal address. This blocks some kinds of potential browser-based attacks, especially on hosts using DNSPort. Also clarify behavior in some comments. Backport candiate? svn:r11287 Nick Mathewson2007-08-27
* Handle unexpected whitespace better in malformed descriptors. Bug•••found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x. svn:r11229 Roger Dingledine2007-08-20
* r14651@catbus: nickm | 2007-08-17 21:37:03 -0400••• Another attempt to confirm to msvc for bug 482. svn:r11162 Nick Mathewson2007-08-18
* redefine BITARRAY_MASK as a function of BITARRAY_SHIFT•••svn:r11160 Peter Palfrader2007-08-17
* r14639@catbus: nickm | 2007-08-17 17:45:28 -0400••• Compile without warnings on MinGW, even with --enable-gcc-warnings enabled. svn:r11157 Nick Mathewson2007-08-17
* r14634@catbus: nickm | 2007-08-17 16:43:49 -0400••• Try to fix bug 482: do not rely on s6_addr16 or s6_addr32 on MSVC. How ugly. svn:r11155 Nick Mathewson2007-08-17
* r14051@Kushana: nickm | 2007-08-15 15:55:36 -0400••• Fix an XXXX020 and a few DOCDOCs. svn:r11127 Nick Mathewson2007-08-15
* r14093@catbus: nickm | 2007-08-08 01:49:54 -0400••• Include fewer redundant headers; use the compiler search paths better. svn:r11060 Nick Mathewson2007-08-08
* r14091@catbus: nickm | 2007-08-08 01:13:17 -0400••• Fix an annoying warning on OpenBSD: only include malloc.h if we are using it. svn:r11059 Nick Mathewson2007-08-08
* r13926@Kushana: nickm | 2007-08-03 00:55:23 -0700••• Fix compilation with HAVE_GETADDRINFO unset svn:r11042 Nick Mathewson2007-08-03
* r13907@Kushana: nickm | 2007-08-02 10:29:13 -0700••• Try (once again) to fix mingw build wrt detecting ipv6 types. svn:r11037 Nick Mathewson2007-08-02
* r13873@Kushana: nickm | 2007-07-31 10:54:05 -0700••• Split over-optimized digestmap_set code into a generic part and a digestmap-specific part. svn:r11012 Nick Mathewson2007-08-01
* r13872@Kushana: nickm | 2007-07-31 08:27:54 -0700••• Rename IN4_ADDR and IN6_ADDR to try to avoid conflicting with Windows definitions. This may fix the windows build. svn:r11011 Nick Mathewson2007-08-01
* r13871@Kushana: nickm | 2007-07-31 08:10:58 -0700••• Fix warning aobut unused parameter on platforms without mallinfo. svn:r11010 Nick Mathewson2007-08-01
* r14024@catbus: nickm | 2007-07-30 14:13:58 -0400••• Glibc (and maybe others) define a mallinfo() that can be used to see how the platform malloc is acting inside. When we have it, dump its output on dumpmemusage(). svn:r10996 Nick Mathewson2007-07-30
* r14015@catbus: nickm | 2007-07-30 13:18:05 -0400••• Add missing code documentation in src/common svn:r10991 Nick Mathewson2007-07-30
* r13988@catbus: nickm | 2007-07-29 16:32:36 -0400••• Cheesy attempt to break some censorware. Not a long-term fix, but it will be intersting to watch the epidemiology of the workarounds as the censors apply them. svn:r10975 Nick Mathewson2007-07-29
* r13964@catbus: nickm | 2007-07-28 22:55:10 -0400••• Change "IN_ADDR" macro to "IN4_ADDR" in an attempt to fix mingw compilation svn:r10963 Nick Mathewson2007-07-29
* r13944@catbus: nickm | 2007-07-27 15:52:35 -0400••• Fix warnings on platforms where rlim values can be signed. Add an 8k buffer freelist. svn:r10948 Nick Mathewson2007-07-27
* r13934@catbus: nickm | 2007-07-27 10:41:00 -0400••• Fix spelling; add a comment. svn:r10943 Nick Mathewson2007-07-27
* Maybe fix #471. Compute the size of bitfields more correctly. Nick, please ...•••svn:r10941 Peter Palfrader2007-07-27
* r13926@catbus: nickm | 2007-07-26 17:21:06 -0400••• Add a bit-array type with reasonably fast inline functions. svn:r10938 Nick Mathewson2007-07-26
* r13920@catbus: nickm | 2007-07-26 16:25:25 -0400••• whitespace fixes svn:r10935 Nick Mathewson2007-07-26
* r13858@catbus: nickm | 2007-07-22 18:44:02 -0400••• Fix/note some relatively trivial mem usage issues svn:r10905 Nick Mathewson2007-07-22
* r13856@catbus: nickm | 2007-07-20 14:30:44 -0400••• slightly smarter heuristic about when to use obsolete ::a.b.c.d format. svn:r10893 Nick Mathewson2007-07-20
* r13850@catbus: nickm | 2007-07-20 12:25:24 -0400••• Fix some bugs in ntop/pton. svn:r10891 Nick Mathewson2007-07-20
* r13848@catbus: nickm | 2007-07-19 16:47:16 -0400••• Use our own version of inet_ntop and inet_pton everywhere, to avoid partitioning attacks. svn:r10888 Nick Mathewson2007-07-19
* r13840@catbus: nickm | 2007-07-19 16:00:43 -0400••• Apparently, this problem can occur on the whole BSD family. "Yay." svn:r10884 Nick Mathewson2007-07-19
* r13838@catbus: nickm | 2007-07-19 15:50:16 -0400••• Apparently, OSX does not define s6_addr32 or s6_addr16. How silly. svn:r10883 Nick Mathewson2007-07-19