aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
Commit message (Expand)AuthorAge
* Make crypto_digest_get_digest nondestructive again.•••Fixes bug in f57883a39. Nick Mathewson2009-08-20
* Add a SHA256 implementation for platforms that lack it.•••(This would be everywhere running OpenSSL 0.9.7x and earlier, including all current Macintosh users.) The code is based on Tom St Denis's LibTomCrypt implementation, modified to be way less general and use Tor's existing facilities. I picked this one because it was pretty fast and pretty free, and because Python uses it too. Nick Mathewson2009-08-20
* Add basic support for SHA256.•••This adds an openssl 0.9.8 dependency. Let's see if anybody cares. Nick Mathewson2009-08-19
* Merge branch 'hardware_accel_improvements'Nick Mathewson2009-05-31
|\
| * Add support for dynamic OpenSSL hardware crypto acceleration engines.Martin Peck2009-05-23
| * Update copyright to 2009.Karsten Loesing2009-05-02
* | Fixes to spelling fixes. Thanks, Roger!Nick Mathewson2009-05-28
* | Spell-check Tor.Nick Mathewson2009-05-27
* | Update copyright to 2009.Karsten Loesing2009-05-04
|/
* Make sure that even in the weird fiddly paths that lead to init_keys,•••crypto_global_init gets called. Also have it be crypto_global_init that calls crypto_seed_rng, so we are not dependent on OpenSSL's RAND_poll in these fiddly cases. Should fix bug 907. Bugfix on 0.0.9pre6. Backport candidate. svn:r18210 Nick Mathewson2009-01-21
* Remove svn $Id$s from our source, and remove tor --version --version.•••The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867 Nick Mathewson2009-01-04
* Use RSA_generate_key_ex where available.•••svn:r17804 Nick Mathewson2008-12-29
* Make freelist_len in memarea.c static; document a few variables.•••svn:r17741 Nick Mathewson2008-12-22
* Fix most DOCDOCs remaining and/or added by redox.•••svn:r17734 Nick Mathewson2008-12-22
* Add DOCDOC comments for all undocumented functions. Add missing *s to other ...•••svn:r17729 Nick Mathewson2008-12-22
* Ben confirms that the MUST in rfc2631 is only for compatibility with X9.42, a...•••svn:r17685 Nick Mathewson2008-12-18
* Fix bug 889: share deep-copied keys between threads to avoid races in referen...•••svn:r17672 Nick Mathewson2008-12-18
* Use ctags and a python script to find identifiers that are never used anywher...•••svn:r17651 Nick Mathewson2008-12-17
* Clean up some redundant stuff in crypto_dh_new().•••svn:r16778 Nick Mathewson2008-09-05
* The first of Karsten's proposal 121 patches: configure and maintain client au...•••svn:r16475 Nick Mathewson2008-08-08
* r16587@tombo: nickm | 2008-06-28 00:13:40 -0400••• fix for bug 704; found by sjmurdoch. Windows and recent openssl both want to define OCSP_RESPONSE; do not let them. svn:r15533 Nick Mathewson2008-06-28
* Set dynamic-locking callbacks in openssl. These can be more efficient when o...•••svn:r15222 Nick Mathewson2008-06-13
* Remov unused macro in crypto.c•••svn:r14950 Nick Mathewson2008-06-04
* r15558@tombo: nickm | 2008-05-09 04:35:12 -0400••• New (temporary) tool to dump the modulus of a key. May help with a project of weasel's. svn:r14580 Nick Mathewson2008-05-09
* r19004@catbus: nickm | 2008-03-21 15:18:43 -0400••• Use RAND_poll() again: the bug that made us stop using it has been fixed. svn:r14150 Nick Mathewson2008-03-21
* r14422@tombo: nickm | 2008-02-24 17:09:56 -0500••• Whitespace fixes svn:r13700 Nick Mathewson2008-02-24
* r14399@tombo: nickm | 2008-02-22 14:09:38 -0500••• More 64-to-32 fixes. Partial backport candidate. still not done. svn:r13680 Nick Mathewson2008-02-22
* r14374@tombo: nickm | 2008-02-21 16:57:39 -0500••• 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 Nick Mathewson2008-02-21
* r14373@tombo: nickm | 2008-02-21 16:29:18 -0500••• Apply warnings about implicit 64-to-32 conversions; some from Sebastian Hahn; some not. svn:r13664 Nick Mathewson2008-02-21
* r14185@tombo: nickm | 2008-02-15 18:05:54 -0500••• Replace the hefty tor_strpartition with a simple function to replace its only (trivial) use. svn:r13532 Nick Mathewson2008-02-15
* doxygen and other cleanups•••svn:r13440 Roger Dingledine2008-02-09
* r14062@tombo: nickm | 2008-02-08 15:17:07 -0500••• Change DNs in x509 certificates to be harder to fingerprint. Raise common code. Refactor random hostname generation into crypto.c svn:r13429 Nick Mathewson2008-02-08
* r17964@catbus: nickm | 2008-02-07 10:45:02 -0500••• Fix bug in last patch that made secret_to_key crash. svn:r13415 Nick Mathewson2008-02-07
* r17963@catbus: nickm | 2008-02-07 10:14:25 -0500••• 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 Nick Mathewson2008-02-07
* Update some copyright notices: it is now 2008.•••svn:r13412 Nick Mathewson2008-02-07
* r17903@catbus: nickm | 2008-02-05 14:40:03 -0500••• 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 Nick Mathewson2008-02-05
* r17613@catbus: nickm | 2008-01-14 13:52:44 -0500••• Do not segfault if symetric key generation somehow fails in crypto_hybrid_encrypt. svn:r13132 Nick Mathewson2008-01-14
* r17491@catbus: nickm | 2008-01-07 11:50:24 -0500••• Remove some dead code. svn:r13053 Nick Mathewson2008-01-07
* clean up copyrights, and assign 2007 copyrights to The Tor Project, Inc•••svn:r12786 Roger Dingledine2007-12-12
* cleanups on r12579•••svn:r12580 Roger Dingledine2007-11-27
* r16455@catbus: nickm | 2007-11-06 12:48:00 -0500••• Parse CERT cells and act correctly when we get them. svn:r12396 Nick Mathewson2007-11-06
* r16317@catbus: nickm | 2007-10-31 23:52:52 -0400••• Use HMAC() function from openssl. Oops. svn:r12304 Nick Mathewson2007-11-01
* r16287@catbus: nickm | 2007-10-31 00:53:53 -0400••• HMAC-SHA-1 implementation, with unit tests based on vectors from RVFC2202. Steven's stuff will need this. svn:r12289 Nick Mathewson2007-10-31
* r16159@catbus: nickm | 2007-10-25 12:53:38 -0400••• Drop support for OpenSSL 0.9.6. svn:r12191 Nick Mathewson2007-10-25
* r15882@catbus: nickm | 2007-10-17 15:23:05 -0400••• 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 Nick Mathewson2007-10-17
* r15790@catbus: nickm | 2007-10-15 11:38:28 -0400••• Fix bug 528: fix memory leak in base32_decode(). While there, also make base32_decode() accept upper-case inputs. svn:r11946 Nick Mathewson2007-10-15
* r15702@catbus: nickm | 2007-10-11 17:29:20 -0400••• Remove a bunch of redundant includes in crypto.c svn:r11885 Nick Mathewson2007-10-11
* r15231@catbus: nickm | 2007-09-20 16:04:30 -0400••• Patch from karsten: remove cbc and make unit tests handle aes-ctr-with-iv. svn:r11538 Nick Mathewson2007-09-20
* r15172@catbus: nickm | 2007-09-19 11:50:02 -0400••• 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 Nick Mathewson2007-09-19
* minor style tweaks•••svn:r11490 Roger Dingledine2007-09-18