| Commit message (Collapse) | Author | Age |
|
|
|
| |
svn:r12580
|
|
|
|
|
|
|
| |
Parse CERT cells and act correctly when we get them.
svn:r12396
|
|
|
|
|
|
|
| |
Use HMAC() function from openssl. Oops.
svn:r12304
|
|
|
|
|
|
|
| |
HMAC-SHA-1 implementation, with unit tests based on vectors from RVFC2202. Steven's stuff will need this.
svn:r12289
|
|
|
|
|
|
|
| |
Drop support for OpenSSL 0.9.6.
svn:r12191
|
|
|
|
|
|
|
| |
oprofile was telling me that a fair bit of our time in openssl was spent in base64_decode, so replace base64_decode with an all-at-once fairly optimized implementation. For decoding keys and digests, it seems 3-3.5x faster than calling out to openssl. (Yes, I wrote it from scratch.)
svn:r12002
|
|
|
|
|
|
|
| |
Fix bug 528: fix memory leak in base32_decode(). While there, also make base32_decode() accept upper-case inputs.
svn:r11946
|
|
|
|
|
|
|
| |
Remove a bunch of redundant includes in crypto.c
svn:r11885
|
|
|
|
|
|
|
| |
Patch from karsten: remove cbc and make unit tests handle aes-ctr-with-iv.
svn:r11538
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn:r11490
|
|
|
|
|
|
|
| |
step of integrating his new hidden service stuff
svn:r11489
|
|
|
|
|
|
|
| |
Expose a function to parse a private key from a string as CRYPTO_PRIVATE. For testing.
svn:r10583
|
|
|
|
|
|
|
| |
Fix up a couple of loops flagged by -Wunsafe-loop-optimizations so that they are more readable (and more amenable to compilation)
svn:r10513
|
|
|
|
|
|
|
| |
Fix the fix for bug 445: set umask properly. Also use open+fdopen rather than just umask+fopen, and create authority identity key with mode 400.
svn:r10485
|
|
|
|
|
|
|
| |
Set umask(0700) when starting tor-gencert; resolves bug 445.
svn:r10475
|
|
|
|
|
|
|
| |
Add a "swap" function to smartlist, add a "shuffle" function for smartlist to crypto.c, and make appropriate hashtable functions be more const.
svn:r10208
|
|
|
|
|
|
|
| |
Fix dumb bug introduced in r10199
svn:r10202
|
|
|
|
|
|
|
| |
Fix warnings from -Wunsafe-loop-optimizations, which incidentally turned up a logic bug in connection_or_flush_from_first_active_circuit that would overcount the number of cells flushed.
svn:r10199
|
|
|
|
|
|
|
| |
Remove the "RSA keys are 128-bits" assumption from crypto.c
svn:r10096
|
|
|
|
|
|
|
| |
Move private function declarations from crypto.c into a new #ifdef CRYPTO_PRIVATE block in crypto.h
svn:r10074
|
|
|
|
|
|
|
| |
Try to build without warnings on mingw with verbose warnings on. First attempt.
svn:r9688
|
|
|
|
|
|
|
| |
Add some missing (redundant but helpful in most cases) static declarations, and remove a function nobody was calling.
svn:r9672
|
|
|
|
|
|
|
| |
Update copyright dates.
svn:r9570
|
|
|
|
| |
svn:r9495
|
|
|
|
|
|
|
| |
Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition.
svn:r9483
|
|
|
|
|
|
|
| |
Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch!
svn:r9477
|
|
|
|
|
|
|
| |
And remove another strcpy.
svn:r9375
|
|
|
|
|
|
|
| |
null. better safe than sorry.
svn:r8767
|
|
|
|
|
|
|
| |
Add unit tests for tor_mmap_file(); make tor_mmap_t.size always be the size of the file (not the size of the mapping); add an extra argument to read_file_to_str() so it can return the size of the result string.
svn:r8762
|
|
|
|
|
|
|
| |
The otherwise regrettable MIPSpro C compiler warns about values set but never used, and about mixing enums and ints; these are good warnings, and so should be fixed. This removes some dead code and some potential bugs. Thanks to pnx.
svn:r8664
|
|
|
|
|
|
|
|
|
|
| |
change any behavior currently, but it will avoiding calling
noop code that might change for the worse some time.
nick, please confirm.
svn:r8623
|
|
|
|
|
|
|
| |
Add function to return a random uint64_t.
svn:r8570
|
|
|
|
|
|
|
| |
Differentiate more duplicated log entries
svn:r8542
|
|
|
|
|
|
|
| |
Doxygen comments for code in common. Also simplify a few code paths to be more clear/speedy/correct.
svn:r8536
|
|
|
|
|
|
|
| |
Try to appease some warnings with newer gccs that believe that ignoring a return value is okay, but casting a return value and then ignoring it is a sign of madness.
svn:r8312
|
|
|
|
| |
svn:r7052
|
|
|
|
| |
svn:r6763
|
|
|
|
|
|
|
|
| |
initialize for hardware acceleration in certain configurations;
but not critical until that is supported.
svn:r6536
|
|
|
|
|
|
| |
we have to explicitly "use" unuseds, but it can catch bugs. (It caught two coding mistakes so far.)
svn:r6532
|
|
|
|
|
|
|
| |
we overloaded the meaning of the argument to crypto_global_init().
svn:r6490
|
|
|
|
|
|
| |
directory authorities switch back to 0.0.9tooearly.
svn:r6376
|
|
|
|
| |
svn:r6240
|
|
|
|
| |
svn:r6143
|
|
|
|
|
|
|
|
|
| |
This is needed because Windows already has an err() that we
can't clobber. And we need to be able to make the log functions
a macro so we can print the function's name in the log entry.
svn:r6000
|
|
|
|
| |
svn:r5949
|
|
|
|
| |
svn:r5849
|
|
|
|
|
|
| |
we have not tried running without this yet". B is "this is suspicious, but the last time we tested, it was okay." C is "How could this possibly be the cause?"
svn:r5840
|
|
|
|
|
|
| |
interesting crypto-related changes made on 0.1.1.9. This will help hunt bug 234.
svn:r5777
|
|
|
|
|
|
| |
intended.
svn:r5582
|