aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAge
* r15231@catbus: nickm | 2007-09-20 16:04:30 -0400Nick Mathewson2007-09-20
| | | | | | | Patch from karsten: remove cbc and make unit tests handle aes-ctr-with-iv. svn:r11538
* r14532@Kushana: nickm | 2007-09-20 13:25:38 -0400Nick Mathewson2007-09-20
| | | | | | | Clean up some macros in aes.c svn:r11537
* r15210@catbus: nickm | 2007-09-20 13:04:05 -0400Nick Mathewson2007-09-20
| | | | | | | 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
* poke at svn until it compiles. nick, you should decide if thisRoger Dingledine2007-09-20
| | | | | | | is what you meant to do. svn:r11529
* r15172@catbus: nickm | 2007-09-19 11:50:02 -0400Nick Mathewson2007-09-19
| | | | | | | 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
* r15171@catbus: nickm | 2007-09-19 11:44:54 -0400Nick Mathewson2007-09-19
| | | | | | | 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
* minor style tweaksRoger Dingledine2007-09-18
| | | | svn:r11490
* add some crypto/util functions from karsten, as the firstRoger Dingledine2007-09-18
| | | | | | | step of integrating his new hidden service stuff svn:r11489
* r14448@Kushana: nickm | 2007-09-17 14:26:56 -0400Nick Mathewson2007-09-17
| | | | | | | Unify all of the divergent median/nth-percentile code in container.[ch] svn:r11457
* r14363@Kushana: nickm | 2007-09-08 16:25:45 -0400Nick Mathewson2007-09-08
| | | | | | | Another round of whitespeace fixes. svn:r11407
* r14359@Kushana: nickm | 2007-09-08 15:07:17 -0400Nick Mathewson2007-09-08
| | | | | | | Add some generic skew-and-tolerance functions so we can handle time more sanely. svn:r11406
* r14869@catbus: nickm | 2007-08-31 08:49:26 -0400Nick Mathewson2007-08-31
| | | | | | | Fix a segfault in expand_filename("~"). Found by lindi. svn:r11332
* r14832@catbus: nickm | 2007-08-29 15:00:27 -0400Nick Mathewson2007-08-29
| | | | | | | Use (and debug) new file-writing functions in order to simplify code that formerly built big strings in RAM. svn:r11301
* r14831@catbus: nickm | 2007-08-29 14:17:42 -0400Nick Mathewson2007-08-29
| | | | | | | 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
* r14227@Kushana: nickm | 2007-08-27 11:33:28 -0400Nick Mathewson2007-08-27
| | | | | | | 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
* Handle unexpected whitespace better in malformed descriptors. BugRoger Dingledine2007-08-20
| | | | | | | found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x. svn:r11229
* r14651@catbus: nickm | 2007-08-17 21:37:03 -0400Nick Mathewson2007-08-18
| | | | | | | Another attempt to confirm to msvc for bug 482. svn:r11162
* redefine BITARRAY_MASK as a function of BITARRAY_SHIFTPeter Palfrader2007-08-17
| | | | svn:r11160
* r14639@catbus: nickm | 2007-08-17 17:45:28 -0400Nick Mathewson2007-08-17
| | | | | | | Compile without warnings on MinGW, even with --enable-gcc-warnings enabled. svn:r11157
* r14634@catbus: nickm | 2007-08-17 16:43:49 -0400Nick Mathewson2007-08-17
| | | | | | | Try to fix bug 482: do not rely on s6_addr16 or s6_addr32 on MSVC. How ugly. svn:r11155
* r14051@Kushana: nickm | 2007-08-15 15:55:36 -0400Nick Mathewson2007-08-15
| | | | | | | Fix an XXXX020 and a few DOCDOCs. svn:r11127
* r14093@catbus: nickm | 2007-08-08 01:49:54 -0400Nick Mathewson2007-08-08
| | | | | | | Include fewer redundant headers; use the compiler search paths better. svn:r11060
* r14091@catbus: nickm | 2007-08-08 01:13:17 -0400Nick Mathewson2007-08-08
| | | | | | | Fix an annoying warning on OpenBSD: only include malloc.h if we are using it. svn:r11059
* r13926@Kushana: nickm | 2007-08-03 00:55:23 -0700Nick Mathewson2007-08-03
| | | | | | | Fix compilation with HAVE_GETADDRINFO unset svn:r11042
* r13907@Kushana: nickm | 2007-08-02 10:29:13 -0700Nick Mathewson2007-08-02
| | | | | | | Try (once again) to fix mingw build wrt detecting ipv6 types. svn:r11037
* r13873@Kushana: nickm | 2007-07-31 10:54:05 -0700Nick Mathewson2007-08-01
| | | | | | | Split over-optimized digestmap_set code into a generic part and a digestmap-specific part. svn:r11012
* r13872@Kushana: nickm | 2007-07-31 08:27:54 -0700Nick Mathewson2007-08-01
| | | | | | | Rename IN4_ADDR and IN6_ADDR to try to avoid conflicting with Windows definitions. This may fix the windows build. svn:r11011
* r13871@Kushana: nickm | 2007-07-31 08:10:58 -0700Nick Mathewson2007-08-01
| | | | | | | Fix warning aobut unused parameter on platforms without mallinfo. svn:r11010
* r14024@catbus: nickm | 2007-07-30 14:13:58 -0400Nick Mathewson2007-07-30
| | | | | | | 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
* r14015@catbus: nickm | 2007-07-30 13:18:05 -0400Nick Mathewson2007-07-30
| | | | | | | Add missing code documentation in src/common svn:r10991
* r13988@catbus: nickm | 2007-07-29 16:32:36 -0400Nick Mathewson2007-07-29
| | | | | | | 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
* r13964@catbus: nickm | 2007-07-28 22:55:10 -0400Nick Mathewson2007-07-29
| | | | | | | Change "IN_ADDR" macro to "IN4_ADDR" in an attempt to fix mingw compilation svn:r10963
* r13944@catbus: nickm | 2007-07-27 15:52:35 -0400Nick Mathewson2007-07-27
| | | | | | | | | Fix warnings on platforms where rlim values can be signed. Add an 8k buffer freelist. svn:r10948
* r13934@catbus: nickm | 2007-07-27 10:41:00 -0400Nick Mathewson2007-07-27
| | | | | | | Fix spelling; add a comment. svn:r10943
* Maybe fix #471. Compute the size of bitfields more correctly. Nick, please ↵Peter Palfrader2007-07-27
| | | | | | check. svn:r10941
* r13926@catbus: nickm | 2007-07-26 17:21:06 -0400Nick Mathewson2007-07-26
| | | | | | | Add a bit-array type with reasonably fast inline functions. svn:r10938
* r13920@catbus: nickm | 2007-07-26 16:25:25 -0400Nick Mathewson2007-07-26
| | | | | | | whitespace fixes svn:r10935
* r13858@catbus: nickm | 2007-07-22 18:44:02 -0400Nick Mathewson2007-07-22
| | | | | | | Fix/note some relatively trivial mem usage issues svn:r10905
* r13856@catbus: nickm | 2007-07-20 14:30:44 -0400Nick Mathewson2007-07-20
| | | | | | | slightly smarter heuristic about when to use obsolete ::a.b.c.d format. svn:r10893
* r13850@catbus: nickm | 2007-07-20 12:25:24 -0400Nick Mathewson2007-07-20
| | | | | | | Fix some bugs in ntop/pton. svn:r10891
* r13848@catbus: nickm | 2007-07-19 16:47:16 -0400Nick Mathewson2007-07-19
| | | | | | | Use our own version of inet_ntop and inet_pton everywhere, to avoid partitioning attacks. svn:r10888
* r13840@catbus: nickm | 2007-07-19 16:00:43 -0400Nick Mathewson2007-07-19
| | | | | | | Apparently, this problem can occur on the whole BSD family. "Yay." svn:r10884
* r13838@catbus: nickm | 2007-07-19 15:50:16 -0400Nick Mathewson2007-07-19
| | | | | | | Apparently, OSX does not define s6_addr32 or s6_addr16. How silly. svn:r10883
* r13836@catbus: nickm | 2007-07-19 15:43:04 -0400Nick Mathewson2007-07-19
| | | | | | | Some older GCCs think that iph4 could be used uninitialized. Fix that. svn:r10882
* r13834@catbus: nickm | 2007-07-19 15:40:42 -0400Nick Mathewson2007-07-19
| | | | | | | Another patch from croup: drop support for address masks that do not correspond to bit prefixes. Nobody has used this for a while, and we have given warnings for a long time. svn:r10881
* r13827@catbus: nickm | 2007-07-19 14:42:25 -0400Nick Mathewson2007-07-19
| | | | | | | Merge in some generic address manipulation code from croup. Needs some work. svn:r10880
* r13788@catbus: nickm | 2007-07-16 14:26:25 -0400Nick Mathewson2007-07-16
| | | | | | | Patch from croup: rewrite the logic of get_next_token() to do the right thing with input that ends at weird places, or aligns with block boundaries after mmap. should fix bug 455. Needs fuzzing. svn:r10847
* free some more memory on exitRoger Dingledine2007-07-16
| | | | svn:r10837
* r13687@catbus: nickm | 2007-07-10 16:08:14 -0400Nick Mathewson2007-07-10
| | | | | | | Possible partial fix for bug 455: use eos logic everywhere. svn:r10786
* r13631@catbus: nickm | 2007-07-06 10:17:22 -0400Nick Mathewson2007-07-06
| | | | | | | Try to fix win32 build again. svn:r10750