aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
AgeCommit message (Collapse)Author
2007-02-28 r12001@catbus: nickm | 2007-02-28 15:24:12 -0500Nick Mathewson
Try to build without warnings on mingw with verbose warnings on. First attempt. svn:r9688
2007-02-28 r11976@catbus: nickm | 2007-02-27 19:35:59 -0500Nick Mathewson
Add some missing (redundant but helpful in most cases) static declarations, and remove a function nobody was calling. svn:r9672
2007-02-12 r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson
Update copyright dates. svn:r9570
2007-02-06more changes. i'm all caught up now.Roger Dingledine
svn:r9495
2007-02-05 r11639@catbus: nickm | 2007-02-05 13:33:38 -0500Nick Mathewson
Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition. svn:r9483
2007-02-02 r11629@catbus: nickm | 2007-02-02 15:06:17 -0500Nick Mathewson
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
2007-01-20 r9689@catbus: nickm | 2007-01-19 22:34:20 -0500Nick Mathewson
And remove another strcpy. svn:r9375
2006-10-20i saw somebody on #tor paste a string where these wereRoger Dingledine
null. better safe than sorry. svn:r8767
2006-10-19 r9274@Kushana: nickm | 2006-10-19 16:16:58 -0400Nick Mathewson
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
2006-10-09 r8957@totoro: nickm | 2006-10-08 22:35:17 -0400Nick Mathewson
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
2006-10-07fix something that looked scary to me. i believe this won'tRoger Dingledine
change any behavior currently, but it will avoiding calling noop code that might change for the worse some time. nick, please confirm. svn:r8623
2006-10-01 r8825@totoro: nickm | 2006-10-01 17:41:27 -0400Nick Mathewson
Add function to return a random uint64_t. svn:r8570
2006-09-29 r9025@Kushana: nickm | 2006-09-29 18:33:13 -0400Nick Mathewson
Differentiate more duplicated log entries svn:r8542
2006-09-29 r9008@Kushana: nickm | 2006-09-29 13:50:10 -0400Nick Mathewson
Doxygen comments for code in common. Also simplify a few code paths to be more clear/speedy/correct. svn:r8536
2006-08-31 r8696@Kushana: nickm | 2006-08-31 14:43:44 -0400Nick Mathewson
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
2006-08-14note a compile warning that we should investigate one day.Roger Dingledine
svn:r7052
2006-07-15stick to nick's nul/null conventionRoger Dingledine
svn:r6763
2006-06-05bandaid for bug 299. this is still a bug, since we don'tRoger Dingledine
initialize for hardware acceleration in certain configurations; but not critical until that is supported. svn:r6536
2006-06-04Add a new warning to our "warn a lot" list: unused parameters. This means ↵Nick Mathewson
we have to explicitly "use" unuseds, but it can catch bugs. (It caught two coding mistakes so far.) svn:r6532
2006-05-24Stop initializing the hardware accelerator engines simply becauseRoger Dingledine
we overloaded the meaning of the argument to crypto_global_init(). svn:r6490
2006-04-10Remove DER64 functions in trunk: they will never be used again unless the ↵Nick Mathewson
directory authorities switch back to 0.0.9tooearly. svn:r6376
2006-03-26clean up the traces from tracking the 0.1.1.9-alpha stack-smashing bug.Roger Dingledine
svn:r6240
2006-03-12More cleanups noticed by weasel; also, remove macros that nobody uses.Nick Mathewson
svn:r6143
2006-02-13Start the process of converting warn to log_warn and so on.Roger Dingledine
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
2006-02-09Happy new year!Roger Dingledine
svn:r5949
2006-01-22Split PARANOIA_B into B1 and B2.Nick Mathewson
svn:r5849
2006-01-17Split 0119_PARANOIA into 0119_PARANOIA_[ABC]. A is "this is suspicious, and ↵Nick Mathewson
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
2006-01-10Add a (diabled by default) option in crypto.h to disable most of the ↵Nick Mathewson
interesting crypto-related changes made on 0.1.1.9. This will help hunt bug 234. svn:r5777
2005-12-14Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson
intended. svn:r5582
2005-12-08Document CREATE_FAST better in the code. Move our key expansion algorithm ↵Nick Mathewson
into a separate function in crypto.c svn:r5530
2005-12-06get rid of nick's crazy voodoo dh checking.Roger Dingledine
svn:r5518
2005-11-30remove another unused functionRoger Dingledine
svn:r5477
2005-11-30remove some functions that are not used; #if0 out some files that are not ↵Nick Mathewson
likely to be used. svn:r5471
2005-11-21a smidgen more hint when we fail to seed the rngRoger Dingledine
svn:r5438
2005-11-16Try to build with OpenSSL 0.9.6. Lets pay attention to see if anybody complains.Nick Mathewson
svn:r5398
2005-11-14Oops. It looks like there *was* an easy way to make openssl do what we wanted.Nick Mathewson
svn:r5370
2005-11-11correct nick's commentRoger Dingledine
svn:r5360
2005-11-11Note that much of check_dh_key is voodoo; make x in DH be only 320 bits for ↵Nick Mathewson
DH speed improvement: this wants auditing. [We have blessing from Ian on this.] (Note that DH in SSL is not yet affected.) svn:r5359
2005-10-26Call ERR_remove_state() on the main thread on shutdown,tooNick Mathewson
svn:r5322
2005-10-25Per comments at the bottom of openssl/FAQ, call even more functions toNick Mathewson
clean up OpenSSL's toys when it's done playing. (Why isn't there an OpenSSL_free_everything() function?) svn:r5321
2005-10-18Start dividing log messages into logging domains. No, LD_ is not the best ↵Nick Mathewson
of identifiers. src/or has not been converted yet. Domains dont do anything yet. svn:r5284
2005-10-17Downgrade a few INFO level logs to DEBUG again. Also add two or three newPeter Palfrader
logs in cases where a calling function's log was downgraded and we wouldn't get any log message otherwise. svn:r5263
2005-10-08Okay, try to use RAND_poll() from OpenSSL where available.Nick Mathewson
svn:r5229
2005-10-07LOG_ERR is for when we know we're going to exit. use LOG_WARN in otherRoger Dingledine
cases. svn:r5220
2005-10-07disable RAND_poll() for the alpha of the day; at least 24 hours of testing ↵Nick Mathewson
is in order for something like that. svn:r5216
2005-10-07Add half our entropy from RAND_poll in OpenSSL. These know how to use egd ↵Nick Mathewson
(if present) openbsd weirdness (if present), vms/os2 weirdness (if we ever port there), and more in the future. svn:r5215
2005-10-06Once an hour (not just on startup) give OpenSSL some more entropy.Nick Mathewson
Add entropy in 512-bit chunks, not 160-bit chunks. (This latter change is voodoo.) svn:r5211
2005-10-06Using RAND_pseudo_bytes instead of RAND_bytes is an accident waiting to ↵Nick Mathewson
happen, and does not really speed us up much when we do it. So stop doing it. svn:r5210
2005-10-06Make doxygen marginally happierNick Mathewson
svn:r5208
2005-10-03free EVP cipher information on shutdown to remove some spurious dmalloc ↵Nick Mathewson
complaints. svn:r5180