summaryrefslogtreecommitdiff
path: root/src/common/crypto.c
AgeCommit message (Collapse)Author
2008-09-05Clean up some redundant stuff in crypto_dh_new().Nick Mathewson
svn:r16778
2008-08-08The first of Karsten's proposal 121 patches: configure and maintain client ↵Nick Mathewson
authorization data. Tweaked a bit: see comments on or-dev. svn:r16475
2008-06-28 r16587@tombo: nickm | 2008-06-28 00:13:40 -0400Nick Mathewson
fix for bug 704; found by sjmurdoch. Windows and recent openssl both want to define OCSP_RESPONSE; do not let them. svn:r15533
2008-06-13Set dynamic-locking callbacks in openssl. These can be more efficient when ↵Nick Mathewson
openssl uses them. svn:r15222
2008-06-04Remov unused macro in crypto.cNick Mathewson
svn:r14950
2008-05-09 r15558@tombo: nickm | 2008-05-09 04:35:12 -0400Nick Mathewson
New (temporary) tool to dump the modulus of a key. May help with a project of weasel's. svn:r14580
2008-03-21 r19004@catbus: nickm | 2008-03-21 15:18:43 -0400Nick Mathewson
Use RAND_poll() again: the bug that made us stop using it has been fixed. svn:r14150
2008-02-24 r14422@tombo: nickm | 2008-02-24 17:09:56 -0500Nick Mathewson
Whitespace fixes svn:r13700
2008-02-22 r14399@tombo: nickm | 2008-02-22 14:09:38 -0500Nick Mathewson
More 64-to-32 fixes. Partial backport candidate. still not done. svn:r13680
2008-02-21 r14374@tombo: nickm | 2008-02-21 16:57:39 -0500Nick Mathewson
Fix all remaining shorten-64-to-32 errors in src/common. Some were genuine problems. Many were compatibility errors with libraries (openssl, zlib) that like predate size_t. Partial backport candidate. svn:r13665
2008-02-21 r14373@tombo: nickm | 2008-02-21 16:29:18 -0500Nick Mathewson
Apply warnings about implicit 64-to-32 conversions; some from Sebastian Hahn; some not. svn:r13664
2008-02-15 r14185@tombo: nickm | 2008-02-15 18:05:54 -0500Nick Mathewson
Replace the hefty tor_strpartition with a simple function to replace its only (trivial) use. svn:r13532
2008-02-09doxygen and other cleanupsRoger Dingledine
svn:r13440
2008-02-08 r14062@tombo: nickm | 2008-02-08 15:17:07 -0500Nick Mathewson
Change DNs in x509 certificates to be harder to fingerprint. Raise common code. Refactor random hostname generation into crypto.c svn:r13429
2008-02-07 r17964@catbus: nickm | 2008-02-07 10:45:02 -0500Nick Mathewson
Fix bug in last patch that made secret_to_key crash. svn:r13415
2008-02-07 r17963@catbus: nickm | 2008-02-07 10:14:25 -0500Nick Mathewson
Be more thorough about memory poisoning and clearing. Add an in-place version of aes_crypt in order to remove a memcpy from relay_crypt_one_payload. svn:r13414
2008-02-07Update some copyright notices: it is now 2008.Nick Mathewson
svn:r13412
2008-02-05 r17903@catbus: nickm | 2008-02-05 14:40:03 -0500Nick Mathewson
Remove some dead code; fix some XXX020s; turn some XXX020s into XXXX_IP6s (i.e., "needs to be fixed when we add ipv6 support"). svn:r13382
2008-01-14 r17613@catbus: nickm | 2008-01-14 13:52:44 -0500Nick Mathewson
Do not segfault if symetric key generation somehow fails in crypto_hybrid_encrypt. svn:r13132
2008-01-07 r17491@catbus: nickm | 2008-01-07 11:50:24 -0500Nick Mathewson
Remove some dead code. svn:r13053
2007-12-12clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine
svn:r12786
2007-11-27cleanups on r12579Roger Dingledine
svn:r12580
2007-11-06 r16455@catbus: nickm | 2007-11-06 12:48:00 -0500Nick Mathewson
Parse CERT cells and act correctly when we get them. svn:r12396
2007-11-01 r16317@catbus: nickm | 2007-10-31 23:52:52 -0400Nick Mathewson
Use HMAC() function from openssl. Oops. svn:r12304
2007-10-31 r16287@catbus: nickm | 2007-10-31 00:53:53 -0400Nick Mathewson
HMAC-SHA-1 implementation, with unit tests based on vectors from RVFC2202. Steven's stuff will need this. svn:r12289
2007-10-25 r16159@catbus: nickm | 2007-10-25 12:53:38 -0400Nick Mathewson
Drop support for OpenSSL 0.9.6. svn:r12191
2007-10-17 r15882@catbus: nickm | 2007-10-17 15:23:05 -0400Nick Mathewson
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
2007-10-15 r15790@catbus: nickm | 2007-10-15 11:38:28 -0400Nick Mathewson
Fix bug 528: fix memory leak in base32_decode(). While there, also make base32_decode() accept upper-case inputs. svn:r11946
2007-10-11 r15702@catbus: nickm | 2007-10-11 17:29:20 -0400Nick Mathewson
Remove a bunch of redundant includes in crypto.c svn:r11885
2007-09-20 r15231@catbus: nickm | 2007-09-20 16:04:30 -0400Nick Mathewson
Patch from karsten: remove cbc and make unit tests handle aes-ctr-with-iv. svn:r11538
2007-09-19 r15172@catbus: nickm | 2007-09-19 11:50:02 -0400Nick Mathewson
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
2007-09-18minor style tweaksRoger Dingledine
svn:r11490
2007-09-18add some crypto/util functions from karsten, as the firstRoger Dingledine
step of integrating his new hidden service stuff svn:r11489
2007-06-13 r13383@catbus: nickm | 2007-06-13 13:53:04 -0400Nick Mathewson
Expose a function to parse a private key from a string as CRYPTO_PRIVATE. For testing. svn:r10583
2007-06-06 r13283@catbus: nickm | 2007-06-06 01:43:44 -0400Nick Mathewson
Fix up a couple of loops flagged by -Wunsafe-loop-optimizations so that they are more readable (and more amenable to compilation) svn:r10513
2007-06-04 r13239@catbus: nickm | 2007-06-04 11:30:37 -0400Nick Mathewson
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
2007-06-03 r13191@catbus: nickm | 2007-06-03 19:38:18 -0400Nick Mathewson
Set umask(0700) when starting tor-gencert; resolves bug 445. svn:r10475
2007-05-18 r12980@Kushana: nickm | 2007-05-18 14:11:05 -0400Nick Mathewson
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
2007-05-17 r12777@catbus: nickm | 2007-05-16 21:52:23 -0400Nick Mathewson
Fix dumb bug introduced in r10199 svn:r10202
2007-05-16 r12769@catbus: nickm | 2007-05-16 17:32:01 -0400Nick Mathewson
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
2007-05-02 r12638@catbus: nickm | 2007-05-02 17:37:30 -0400Nick Mathewson
Remove the "RSA keys are 128-bits" assumption from crypto.c svn:r10096
2007-04-30 r12595@catbus: nickm | 2007-04-30 18:32:34 -0400Nick Mathewson
Move private function declarations from crypto.c into a new #ifdef CRYPTO_PRIVATE block in crypto.h svn:r10074
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