| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
Patch from karsten: remove cbc and make unit tests handle aes-ctr-with-iv.
svn:r11538
|
|
|
|
|
|
|
| |
Clean up some macros in aes.c
svn:r11537
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
is what you meant to do.
svn:r11529
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn:r11490
|
|
|
|
|
|
|
| |
step of integrating his new hidden service stuff
svn:r11489
|
|
|
|
|
|
|
| |
Unify all of the divergent median/nth-percentile code in container.[ch]
svn:r11457
|
|
|
|
|
|
|
| |
Another round of whitespeace fixes.
svn:r11407
|
|
|
|
|
|
|
| |
Add some generic skew-and-tolerance functions so we can handle time more sanely.
svn:r11406
|
|
|
|
|
|
|
| |
Fix a segfault in expand_filename("~"). Found by lindi.
svn:r11332
|
|
|
|
|
|
|
| |
Use (and debug) new file-writing functions in order to simplify code that formerly built big strings in RAM.
svn:r11301
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
svn:r11229
|
|
|
|
|
|
|
| |
Another attempt to confirm to msvc for bug 482.
svn:r11162
|
|
|
|
| |
svn:r11160
|
|
|
|
|
|
|
| |
Compile without warnings on MinGW, even with --enable-gcc-warnings enabled.
svn:r11157
|
|
|
|
|
|
|
| |
Try to fix bug 482: do not rely on s6_addr16 or s6_addr32 on MSVC. How ugly.
svn:r11155
|
|
|
|
|
|
|
| |
Fix an XXXX020 and a few DOCDOCs.
svn:r11127
|
|
|
|
|
|
|
| |
Include fewer redundant headers; use the compiler search paths better.
svn:r11060
|
|
|
|
|
|
|
| |
Fix an annoying warning on OpenBSD: only include malloc.h if we are using it.
svn:r11059
|
|
|
|
|
|
|
| |
Fix compilation with HAVE_GETADDRINFO unset
svn:r11042
|
|
|
|
|
|
|
| |
Try (once again) to fix mingw build wrt detecting ipv6 types.
svn:r11037
|
|
|
|
|
|
|
| |
Split over-optimized digestmap_set code into a generic part and a digestmap-specific part.
svn:r11012
|
|
|
|
|
|
|
| |
Rename IN4_ADDR and IN6_ADDR to try to avoid conflicting with Windows definitions. This may fix the windows build.
svn:r11011
|
|
|
|
|
|
|
| |
Fix warning aobut unused parameter on platforms without mallinfo.
svn:r11010
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Add missing code documentation in src/common
svn:r10991
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Change "IN_ADDR" macro to "IN4_ADDR" in an attempt to fix mingw compilation
svn:r10963
|
|
|
|
|
|
|
|
|
| |
Fix warnings on platforms where rlim values can be signed.
Add an 8k buffer freelist.
svn:r10948
|
|
|
|
|
|
|
| |
Fix spelling; add a comment.
svn:r10943
|
|
|
|
|
|
| |
check.
svn:r10941
|
|
|
|
|
|
|
| |
Add a bit-array type with reasonably fast inline functions.
svn:r10938
|
|
|
|
|
|
|
| |
whitespace fixes
svn:r10935
|
|
|
|
|
|
|
| |
Fix/note some relatively trivial mem usage issues
svn:r10905
|
|
|
|
|
|
|
| |
slightly smarter heuristic about when to use obsolete ::a.b.c.d format.
svn:r10893
|
|
|
|
|
|
|
| |
Fix some bugs in ntop/pton.
svn:r10891
|
|
|
|
|
|
|
| |
Use our own version of inet_ntop and inet_pton everywhere, to avoid partitioning attacks.
svn:r10888
|
|
|
|
|
|
|
| |
Apparently, this problem can occur on the whole BSD family. "Yay."
svn:r10884
|
|
|
|
|
|
|
| |
Apparently, OSX does not define s6_addr32 or s6_addr16. How silly.
svn:r10883
|
|
|
|
|
|
|
| |
Some older GCCs think that iph4 could be used uninitialized. Fix that.
svn:r10882
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Merge in some generic address manipulation code from croup. Needs some work.
svn:r10880
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn:r10837
|
|
|
|
|
|
|
| |
Possible partial fix for bug 455: use eos logic everywhere.
svn:r10786
|
|
|
|
|
|
|
| |
Try to fix win32 build again.
svn:r10750
|