aboutsummaryrefslogtreecommitdiff
path: root/src/common/aes.c
Commit message (Collapse)AuthorAge
* Rename log.h to torlog.hNick Mathewson2010-07-09
| | | | | | | | | | This should make us conflict less with system files named "log.h". Yes, we shouldn't have been conflicting with those anyway, but some people's compilers act very oddly. The actual change was done with one "git mv", by editing Makefile.am, and running find . -name '*.[ch]' | xargs perl -i -pe 'if (/^#include.*\Wlog.h/) {s/log.h/torlog.h/; }'
* Merge remote branch 'origin/maint-0.2.1'Nick Mathewson2010-02-27
|\ | | | | | | | | | | Conflicts: src/common/test.h src/or/test.c
| * Update Tor Project copyright yearsNick Mathewson2010-02-27
| |
| * Zero a cipher completely before freeing itSebastian Hahn2010-02-26
| | | | | | | | | | | | We used to only zero the first ptrsize bytes of the cipher. Since cipher is large enough, we didn't zero too many bytes. Discovered and fixed by ekir. Fixes bug 1254.
* | Zero a cipher completely before freeing itSebastian Hahn2010-02-22
| | | | | | | | | | | | We used to only zero the first ptrsize bytes of the cipher. Since cipher is large enough, we didn't zero too many bytes. Discovered and fixed by ekir. Fixes bug 1254.
* | *_free functions now accept NULLSebastian Hahn2009-12-12
|/ | | | | | | | Some *_free functions threw asserts when passed NULL. Now all of them accept NULL as input and perform no action when called that way. This gains us consistence for our free functions, and allows some code simplifications where an explicit null check is no longer necessary.
* Spell-check Tor.Nick Mathewson2009-05-27
|
* Update copyright to 2009.Karsten Loesing2009-05-04
|
* Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson2009-01-04
| | | | | | | | 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
* r18753@catbus: nickm | 2008-03-11 14:56:39 -0400Nick Mathewson2008-03-11
| | | | | | | Make some assert()s into tor_assert()s. Make some tor_assert()s called from logging into assert()s, and document why. svn:r13977
* other cleanups that have been sitting in my sandboxRoger Dingledine2008-02-21
| | | | svn:r13649
* r18051@catbus: nickm | 2008-02-12 15:20:43 -0500Nick Mathewson2008-02-12
| | | | | | | Re-tune mempool parametes based on testing on peacetime: use smaller chuncks, free them a little more aggressively, and try very hard to concentrate allocations on fuller chunks. Also, lots of new documentation. svn:r13484
* doxygen and other cleanupsRoger Dingledine2008-02-09
| | | | svn:r13440
* r17963@catbus: nickm | 2008-02-07 10:14:25 -0500Nick Mathewson2008-02-07
| | | | | | | 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
* Update some copyright notices: it is now 2008.Nick Mathewson2008-02-07
| | | | svn:r13412
* clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine2007-12-12
| | | | svn:r12786
* r15530@catbus: nickm | 2007-10-04 12:16:27 -0400Nick Mathewson2007-10-04
| | | | | | | Add a bunch of function documentation; clean up a little code; fix some XXXXs; tag the nonsensical EXTRAINFO_PURPOSE_GENERAL as nonsesnse; note another bit of "do not cache special routers" code to nuke. svn:r11761
* r15512@catbus: nickm | 2007-10-02 16:27:43 -0400Nick Mathewson2007-10-02
| | | | | | | Make some functions static; remove some dead code. svn:r11750
* r14532@Kushana: nickm | 2007-09-20 13:25:38 -0400Nick Mathewson2007-09-20
| | | | | | | Clean up some macros in aes.c svn:r11537
* r15210@catbus: nickm | 2007-09-20 13:04:05 -0400Nick Mathewson2007-09-20
| | | | | | | Re-optimize counter-mode: save about 15% on my core2 by (1) not regenerating the entire counter buffer every time we encrypt a block of keystream (2) using the platform-optimized htonl to convert to big-endian (It's a single instruction on 486 and later ) and (3) not even keeping a separate "counter" and "buffer" when the platform is big-endian. The third still needs testing. svn:r11536
* poke at svn until it compiles. nick, you should decide if thisRoger Dingledine2007-09-20
| | | | | | | is what you meant to do. svn:r11529
* r15171@catbus: nickm | 2007-09-19 11:44:54 -0400Nick Mathewson2007-09-19
| | | | | | | Switch our AES implementation from "128 bit counter with to 64 bits set to 0" to a proper implementation of counter mode. Also, add an aes_set_iv function to initialize the counter to a nonzero value. svn:r11518
* r12011@catbus: nickm | 2007-02-28 18:13:32 -0500Nick Mathewson2007-03-01
| | | | | | | Back out insufficiently evidenced FULL_UNROLL in aes.c svn:r9693
* r11976@catbus: nickm | 2007-02-27 19:35:59 -0500Nick Mathewson2007-02-28
| | | | | | | Add some missing (redundant but helpful in most cases) static declarations, and remove a function nobody was calling. svn:r9672
* Add a missing paren, and the results of an experiment.Nick Mathewson2007-02-27
| | | | svn:r9664
* r11959@catbus: nickm | 2007-02-26 22:53:36 -0500Nick Mathewson2007-02-27
| | | | | | | try to make aes encryption of cells about 30-40% faster where applicable. offer not available for all architectures or all versions of openssl. svn:r9663
* r11956@catbus: nickm | 2007-02-26 13:33:49 -0500Nick Mathewson2007-02-26
| | | | | | | Add a quick-and-dirty AES benchmark function to the bottom of aes.c so I can go collecting data. svn:r9660
* r11954@catbus: nickm | 2007-02-26 13:01:19 -0500Nick Mathewson2007-02-26
| | | | | | | Note some optimizations that are probably not worth it for 0.1.2.x based on preliminary profiling. svn:r9659
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson2007-02-12
| | | | | | | Update copyright dates. svn:r9570
* More cleanups noticed by weasel; also, remove macros that nobody uses.Nick Mathewson2006-03-12
| | | | svn:r6143
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* Ive spent about 10 hours benchmarking permutations on our counter-mode ↵Nick Mathewson2005-12-01
| | | | | | implementation. This is the one that flies. (Avoid OpenSSL; optimizze rijndael calling convention to avoid needing to marshall and unmarshall counter.) This should speed up cell encryption by about 27%. svn:r5486
* Stop leaking storage for EVP keys. (This would be a critical bug if it had ↵Nick Mathewson2005-10-03
| | | | | | ever appeared in a released version.) svn:r5179
* Never call free() on tor_malloc()d memory. This is unlikely to be our ↵Nick Mathewson2005-09-30
| | | | | | current leak, but it may help dmalloc work. svn:r5168
* Reformat inconsistent function declarations.Nick Mathewson2005-09-30
| | | | svn:r5160
* Add a bunch more warnings to out warning suite; resolve them; pack structs a ↵Nick Mathewson2005-09-29
| | | | | | little better. svn:r5150
* Use EVP_CIPHER_CTX version of AES from openssl, so openssl can use engines ↵Nick Mathewson2005-09-27
| | | | | | (if they exist). svn:r5146
* Point readers of the code to opensslv.h, since everybody who sees 0x0090700f ↵Nick Mathewson2005-09-24
| | | | | | looks at me like some kind of loon svn:r5140
* Possible fix to make aes build on woodyNick Mathewson2005-09-24
| | | | svn:r5139
* Use OpenSSL AES when OpenSSL has version 0.9.7 or later.Nick Mathewson2005-09-23
| | | | svn:r5129
* flesh out the source file descriptions for doxygenRoger Dingledine2005-06-11
| | | | svn:r4404
* Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson2005-06-09
| | | | svn:r4382
* New whitespace normalization rule: no blank line at EOF.Nick Mathewson2005-06-09
| | | | svn:r4378
* Make Tor compile with no warnings with gcc4.0 on OSXNick Mathewson2005-05-07
| | | | svn:r4184
* update copyright notices.Nick Mathewson2005-04-01
| | | | svn:r3982
* Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson2004-11-29
| | | | | | every file. svn:r3019
* remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine2004-11-26
| | | | svn:r2989
* Fix "implicit declaration of ftello" warning: add AC_FUNC_FSEEKO in ↵Nick Mathewson2004-11-14
| | | | | | configure.in and always include orconfig.h before anything else svn:r2854
* Doxygenate common.Nick Mathewson2004-05-10
| | | | svn:r1829