summaryrefslogtreecommitdiff
path: root/src/common/crypto.c
AgeCommit message (Collapse)Author
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
2005-09-30Never call free() on tor_malloc()d memory. This is unlikely to be our ↵Nick Mathewson
current leak, but it may help dmalloc work. svn:r5168
2005-09-30even better function start checks; give dmalloc a chance of working.Nick Mathewson
svn:r5162
2005-09-30Reformat inconsistent function declarations.Nick Mathewson
svn:r5160
2005-09-29Add a bunch more warnings to out warning suite; resolve them; pack structs a ↵Nick Mathewson
little better. svn:r5150
2005-09-18Helper functions to perform our truncated base64 encoding on hexdigests.Nick Mathewson
svn:r5087
2005-09-09Only do openssl accel stuff if version is at least 0.9.7Nick Mathewson
svn:r4973
2005-08-26put quotes around user-supplied strings so they are more likely toRoger Dingledine
realize if they add bad characters (like quotes) to the torrc svn:r4844
2005-08-15a url for better referenceRoger Dingledine
svn:r4778
2005-08-08fix whitespace issuesNick Mathewson
svn:r4752
2005-08-07far far cleaner implementation of handshake checking logic. Backport candidate.Nick Mathewson
svn:r4736
2005-08-07ok, so now it was just redundant. nick, do you recall what rfcRoger Dingledine
you were trying to point to? svn:r4727
2005-08-06note another potential security problem with generating key materialRoger Dingledine
from our DH handshake. svn:r4724
2005-08-05rfc 3536 "provides a glossary of terms used in the IETF when discussingRoger Dingledine
internationalization." svn:r4723
2005-08-05Appease insane windows compiler. (Oh no, an extra semi, the sky is falling!)Nick Mathewson
svn:r4722
2005-08-05fix harmless copy-and-paste errorNick Mathewson
svn:r4718
2005-08-05cover a few more cases; needs testing and once-overNick Mathewson
svn:r4717
2005-08-04oops, that array got biggertor-0.1.1.4-alphaNick Mathewson
svn:r4708
2005-08-04Discard special bignum values.Nick Mathewson
svn:r4706
2005-06-20Load hardware acceleration options when/where available. Can anybody test this?Nick Mathewson
svn:r4467
2005-06-15Remove code that has been #if-0ed for a long time.Nick Mathewson
svn:r4435
2005-06-11flesh out the source file descriptions for doxygenRoger Dingledine
svn:r4404
2005-06-09Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson
svn:r4382
2005-06-06Possible bugfix for 151: backport candidate.Nick Mathewson
svn:r4318
2005-05-07Make Tor compile with no warnings with gcc4.0 on OSXNick Mathewson
svn:r4184
2005-04-01update copyright notices.Nick Mathewson
svn:r3982
2005-04-01Try to make crash-on-shutdown bug harder to trigger.Nick Mathewson
svn:r3939
2005-03-23Fix a few more instances of memory not freed on exit (found by weasel).Nick Mathewson
svn:r3830
2005-02-13Tell openssl how to use locks and how to find thread ids -- this may prevent ↵Nick Mathewson
race conditions surrounding the error queue. svn:r3622
2005-02-12Apply windows patch from Dmitri BelyNick Mathewson
svn:r3617