summaryrefslogtreecommitdiff
path: root/src/common/aes.c
AgeCommit message (Collapse)Author
2009-05-27Spell-check Tor.Nick Mathewson
2009-05-04Update copyright to 2009.Karsten Loesing
2009-01-04Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson
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
2008-03-11 r18753@catbus: nickm | 2008-03-11 14:56:39 -0400Nick Mathewson
Make some assert()s into tor_assert()s. Make some tor_assert()s called from logging into assert()s, and document why. svn:r13977
2008-02-21other cleanups that have been sitting in my sandboxRoger Dingledine
svn:r13649
2008-02-12 r18051@catbus: nickm | 2008-02-12 15:20:43 -0500Nick Mathewson
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
2008-02-09doxygen and other cleanupsRoger Dingledine
svn:r13440
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
2007-12-12clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine
svn:r12786
2007-10-04 r15530@catbus: nickm | 2007-10-04 12:16:27 -0400Nick Mathewson
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
2007-10-02 r15512@catbus: nickm | 2007-10-02 16:27:43 -0400Nick Mathewson
Make some functions static; remove some dead code. svn:r11750
2007-09-20 r14532@Kushana: nickm | 2007-09-20 13:25:38 -0400Nick Mathewson
Clean up some macros in aes.c svn:r11537
2007-09-20 r15210@catbus: nickm | 2007-09-20 13:04:05 -0400Nick Mathewson
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
2007-09-20poke at svn until it compiles. nick, you should decide if thisRoger Dingledine
is what you meant to do. svn:r11529
2007-09-19 r15171@catbus: nickm | 2007-09-19 11:44:54 -0400Nick Mathewson
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
2007-03-01 r12011@catbus: nickm | 2007-02-28 18:13:32 -0500Nick Mathewson
Back out insufficiently evidenced FULL_UNROLL in aes.c svn:r9693
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-27Add a missing paren, and the results of an experiment.Nick Mathewson
svn:r9664
2007-02-27 r11959@catbus: nickm | 2007-02-26 22:53:36 -0500Nick Mathewson
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
2007-02-26 r11956@catbus: nickm | 2007-02-26 13:33:49 -0500Nick Mathewson
Add a quick-and-dirty AES benchmark function to the bottom of aes.c so I can go collecting data. svn:r9660
2007-02-26 r11954@catbus: nickm | 2007-02-26 13:01:19 -0500Nick Mathewson
Note some optimizations that are probably not worth it for 0.1.2.x based on preliminary profiling. svn:r9659
2007-02-12 r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson
Update copyright dates. svn:r9570
2006-03-12More cleanups noticed by weasel; also, remove macros that nobody uses.Nick Mathewson
svn:r6143
2006-02-09Happy new year!Roger Dingledine
svn:r5949
2005-12-14Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson
intended. svn:r5582
2005-12-01Ive spent about 10 hours benchmarking permutations on our counter-mode ↵Nick Mathewson
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
2005-10-03Stop leaking storage for EVP keys. (This would be a critical bug if it had ↵Nick Mathewson
ever appeared in a released version.) svn:r5179
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-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-27Use EVP_CIPHER_CTX version of AES from openssl, so openssl can use engines ↵Nick Mathewson
(if they exist). svn:r5146
2005-09-24Point readers of the code to opensslv.h, since everybody who sees 0x0090700f ↵Nick Mathewson
looks at me like some kind of loon svn:r5140
2005-09-24Possible fix to make aes build on woodyNick Mathewson
svn:r5139
2005-09-23Use OpenSSL AES when OpenSSL has version 0.9.7 or later.Nick Mathewson
svn:r5129
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-09New whitespace normalization rule: no blank line at EOF.Nick Mathewson
svn:r4378
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
2004-11-29Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson
every file. svn:r3019
2004-11-26remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine
svn:r2989
2004-11-14Fix "implicit declaration of ftello" warning: add AC_FUNC_FSEEKO in ↵Nick Mathewson
configure.in and always include orconfig.h before anything else svn:r2854
2004-05-10Doxygenate common.Nick Mathewson
svn:r1829
2004-05-06Fix bug in stream position adjustmentNick Mathewson
svn:r1801
2004-05-06Use correct aes-ctr implementation in mainline, too.Nick Mathewson
svn:r1800
2004-04-07Delete trailing whitespace and expand tabs; remove unused aes decrypt codeNick Mathewson
svn:r1522
2004-04-06Document stuff, reduce magic numbers, add emacs magicNick Mathewson
svn:r1502
2004-04-03Refactor the heck out of crypto interface: admit that we will stick with one ↵Nick Mathewson
ciphersuite at a time, make const things const, and stop putting openssl in the headers. svn:r1458
2004-02-18we define some big constant arrays but don't use themRoger Dingledine
svn:r1102