aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
Commit message (Collapse)AuthorAge
* cleanups on r12579Roger Dingledine2007-11-27
| | | | svn:r12580
* r16455@catbus: nickm | 2007-11-06 12:48:00 -0500Nick Mathewson2007-11-06
| | | | | | | Parse CERT cells and act correctly when we get them. svn:r12396
* r16317@catbus: nickm | 2007-10-31 23:52:52 -0400Nick Mathewson2007-11-01
| | | | | | | Use HMAC() function from openssl. Oops. svn:r12304
* r16287@catbus: nickm | 2007-10-31 00:53:53 -0400Nick Mathewson2007-10-31
| | | | | | | HMAC-SHA-1 implementation, with unit tests based on vectors from RVFC2202. Steven's stuff will need this. svn:r12289
* r16159@catbus: nickm | 2007-10-25 12:53:38 -0400Nick Mathewson2007-10-25
| | | | | | | Drop support for OpenSSL 0.9.6. svn:r12191
* r15882@catbus: nickm | 2007-10-17 15:23:05 -0400Nick Mathewson2007-10-17
| | | | | | | 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
* r15790@catbus: nickm | 2007-10-15 11:38:28 -0400Nick Mathewson2007-10-15
| | | | | | | Fix bug 528: fix memory leak in base32_decode(). While there, also make base32_decode() accept upper-case inputs. svn:r11946
* r15702@catbus: nickm | 2007-10-11 17:29:20 -0400Nick Mathewson2007-10-11
| | | | | | | Remove a bunch of redundant includes in crypto.c svn:r11885
* r15231@catbus: nickm | 2007-09-20 16:04:30 -0400Nick Mathewson2007-09-20
| | | | | | | Patch from karsten: remove cbc and make unit tests handle aes-ctr-with-iv. svn:r11538
* r15172@catbus: nickm | 2007-09-19 11:50:02 -0400Nick Mathewson2007-09-19
| | | | | | | 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
* minor style tweaksRoger Dingledine2007-09-18
| | | | svn:r11490
* add some crypto/util functions from karsten, as the firstRoger Dingledine2007-09-18
| | | | | | | step of integrating his new hidden service stuff svn:r11489
* r13383@catbus: nickm | 2007-06-13 13:53:04 -0400Nick Mathewson2007-06-13
| | | | | | | Expose a function to parse a private key from a string as CRYPTO_PRIVATE. For testing. svn:r10583
* r13283@catbus: nickm | 2007-06-06 01:43:44 -0400Nick Mathewson2007-06-06
| | | | | | | Fix up a couple of loops flagged by -Wunsafe-loop-optimizations so that they are more readable (and more amenable to compilation) svn:r10513
* r13239@catbus: nickm | 2007-06-04 11:30:37 -0400Nick Mathewson2007-06-04
| | | | | | | 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
* r13191@catbus: nickm | 2007-06-03 19:38:18 -0400Nick Mathewson2007-06-03
| | | | | | | Set umask(0700) when starting tor-gencert; resolves bug 445. svn:r10475
* r12980@Kushana: nickm | 2007-05-18 14:11:05 -0400Nick Mathewson2007-05-18
| | | | | | | 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
* r12777@catbus: nickm | 2007-05-16 21:52:23 -0400Nick Mathewson2007-05-17
| | | | | | | Fix dumb bug introduced in r10199 svn:r10202
* r12769@catbus: nickm | 2007-05-16 17:32:01 -0400Nick Mathewson2007-05-16
| | | | | | | 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
* r12638@catbus: nickm | 2007-05-02 17:37:30 -0400Nick Mathewson2007-05-02
| | | | | | | Remove the "RSA keys are 128-bits" assumption from crypto.c svn:r10096
* r12595@catbus: nickm | 2007-04-30 18:32:34 -0400Nick Mathewson2007-04-30
| | | | | | | Move private function declarations from crypto.c into a new #ifdef CRYPTO_PRIVATE block in crypto.h svn:r10074
* r12001@catbus: nickm | 2007-02-28 15:24:12 -0500Nick Mathewson2007-02-28
| | | | | | | Try to build without warnings on mingw with verbose warnings on. First attempt. svn:r9688
* 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
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson2007-02-12
| | | | | | | Update copyright dates. svn:r9570
* more changes. i'm all caught up now.Roger Dingledine2007-02-06
| | | | svn:r9495
* r11639@catbus: nickm | 2007-02-05 13:33:38 -0500Nick Mathewson2007-02-05
| | | | | | | Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition. svn:r9483
* r11629@catbus: nickm | 2007-02-02 15:06:17 -0500Nick Mathewson2007-02-02
| | | | | | | 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
* r9689@catbus: nickm | 2007-01-19 22:34:20 -0500Nick Mathewson2007-01-20
| | | | | | | And remove another strcpy. svn:r9375
* i saw somebody on #tor paste a string where these wereRoger Dingledine2006-10-20
| | | | | | | null. better safe than sorry. svn:r8767
* r9274@Kushana: nickm | 2006-10-19 16:16:58 -0400Nick Mathewson2006-10-19
| | | | | | | Add unit tests for tor_mmap_file(); make tor_mmap_t.size always be the size of the file (not the size of the mapping); add an extra argument to read_file_to_str() so it can return the size of the result string. svn:r8762
* r8957@totoro: nickm | 2006-10-08 22:35:17 -0400Nick Mathewson2006-10-09
| | | | | | | The otherwise regrettable MIPSpro C compiler warns about values set but never used, and about mixing enums and ints; these are good warnings, and so should be fixed. This removes some dead code and some potential bugs. Thanks to pnx. svn:r8664
* fix something that looked scary to me. i believe this won'tRoger Dingledine2006-10-07
| | | | | | | | | | change any behavior currently, but it will avoiding calling noop code that might change for the worse some time. nick, please confirm. svn:r8623
* r8825@totoro: nickm | 2006-10-01 17:41:27 -0400Nick Mathewson2006-10-01
| | | | | | | Add function to return a random uint64_t. svn:r8570
* r9025@Kushana: nickm | 2006-09-29 18:33:13 -0400Nick Mathewson2006-09-29
| | | | | | | Differentiate more duplicated log entries svn:r8542
* r9008@Kushana: nickm | 2006-09-29 13:50:10 -0400Nick Mathewson2006-09-29
| | | | | | | Doxygen comments for code in common. Also simplify a few code paths to be more clear/speedy/correct. svn:r8536
* r8696@Kushana: nickm | 2006-08-31 14:43:44 -0400Nick Mathewson2006-08-31
| | | | | | | Try to appease some warnings with newer gccs that believe that ignoring a return value is okay, but casting a return value and then ignoring it is a sign of madness. svn:r8312
* note a compile warning that we should investigate one day.Roger Dingledine2006-08-14
| | | | svn:r7052
* stick to nick's nul/null conventionRoger Dingledine2006-07-15
| | | | svn:r6763
* bandaid for bug 299. this is still a bug, since we don'tRoger Dingledine2006-06-05
| | | | | | | | initialize for hardware acceleration in certain configurations; but not critical until that is supported. svn:r6536
* Add a new warning to our "warn a lot" list: unused parameters. This means ↵Nick Mathewson2006-06-04
| | | | | | we have to explicitly "use" unuseds, but it can catch bugs. (It caught two coding mistakes so far.) svn:r6532
* Stop initializing the hardware accelerator engines simply becauseRoger Dingledine2006-05-24
| | | | | | | we overloaded the meaning of the argument to crypto_global_init(). svn:r6490
* Remove DER64 functions in trunk: they will never be used again unless the ↵Nick Mathewson2006-04-10
| | | | | | directory authorities switch back to 0.0.9tooearly. svn:r6376
* clean up the traces from tracking the 0.1.1.9-alpha stack-smashing bug.Roger Dingledine2006-03-26
| | | | svn:r6240
* More cleanups noticed by weasel; also, remove macros that nobody uses.Nick Mathewson2006-03-12
| | | | svn:r6143
* Start the process of converting warn to log_warn and so on.Roger Dingledine2006-02-13
| | | | | | | | | This is needed because Windows already has an err() that we can't clobber. And we need to be able to make the log functions a macro so we can print the function's name in the log entry. svn:r6000
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* Split PARANOIA_B into B1 and B2.Nick Mathewson2006-01-22
| | | | svn:r5849
* Split 0119_PARANOIA into 0119_PARANOIA_[ABC]. A is "this is suspicious, and ↵Nick Mathewson2006-01-17
| | | | | | we have not tried running without this yet". B is "this is suspicious, but the last time we tested, it was okay." C is "How could this possibly be the cause?" svn:r5840
* Add a (diabled by default) option in crypto.h to disable most of the ↵Nick Mathewson2006-01-10
| | | | | | interesting crypto-related changes made on 0.1.1.9. This will help hunt bug 234. svn:r5777
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582