aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
Commit message (Collapse)AuthorAge
* Be more proactive about noticing underflows: size_t values greater than ↵Nick Mathewson2004-12-02
| | | | | | 0x800...00 are likely to be trouble. svn:r3064
* Spell-check strings and commentsNick Mathewson2004-12-01
| | | | svn:r3052
* Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson2004-11-29
| | | | | | every file. svn:r3019
* Normalize space: add one between every control keyword and control clause.Nick Mathewson2004-11-28
| | | | svn:r3003
* remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine2004-11-26
| | | | svn:r2989
* Normalize whitespace; add a "tell me about all the unnormalized whitespace" ↵Nick Mathewson2004-11-09
| | | | | | target; fix a braino in dirserv.c svn:r2758
* Implement two flavors of authentication for control connections: one for ↵Nick Mathewson2004-11-03
| | | | | | trusted FS, one for untrusted FS. svn:r2664
* Use a stricter set of warnings; make them all pass.Nick Mathewson2004-11-02
| | | | svn:r2645
* canonicalize "src" and "dest" arg order in crypto.c (and others)Roger Dingledine2004-11-02
| | | | svn:r2644
* Split util into util (general utilities), container (smartlist and strmap), ↵Nick Mathewson2004-11-01
| | | | | | and compat (cross-platform compatability). svn:r2640
* Move all util functions that need openssl into crypto.c; make non-openssl ↵Nick Mathewson2004-10-30
| | | | | | functions that util needs into util. Now openssl can be separated. svn:r2628
* Tricksy compiler warnings! We hates them, hates them forever, my precious!Nick Mathewson2004-10-27
| | | | svn:r2615
* Pass with -Wstrict-prototypesNick Mathewson2004-10-27
| | | | svn:r2614
* Use strlcpy, not strncpyNick Mathewson2004-10-27
| | | | svn:r2603
* don't assert multiple things in the same tor_assert()Roger Dingledine2004-10-16
| | | | svn:r2545
* fix memory leak in router.c; start relying on NULL==(zero bytes)Nick Mathewson2004-10-16
| | | | svn:r2538
* a few more ints to size_tsRoger Dingledine2004-10-13
| | | | svn:r2461
* start the great migration from int to size_tRoger Dingledine2004-10-12
| | | | | | | and clean some deadweight from util.h svn:r2455
* fix signed/unsigned comparison, plus typoRoger Dingledine2004-10-12
| | | | svn:r2451
* Turn tor_strpartion into a swiss-army-knife function, so it can terminate or ↵Nick Mathewson2004-10-07
| | | | | | not-terminate appropriately. svn:r2429
* More complete docs for crypto.c; factor out string partitioning codeNick Mathewson2004-10-07
| | | | svn:r2427
* Make base-64-encoded DER work, including workaround for ugly openssl ↵Nick Mathewson2004-10-07
| | | | | | misfeature that makes base64 decoding fail when you strip out the newlines. svn:r2423
* Implement (temporarily) a base64-encoded-DER format for RSA keys; make it ↵Nick Mathewson2004-10-06
| | | | | | easier to generate fingerprints with no space svn:r2419
* Stop using openssl functions that rely on stdio; they can apparently lead to ↵Nick Mathewson2004-09-21
| | | | | | linker grief on win32. svn:r2354
* Some platforms have weird translations when you open files in "test" mode; ↵Nick Mathewson2004-09-08
| | | | | | make read/write_str_to_file aware. svn:r2336
* agree with nick: this legal-chars-in-filename stuff gets us nothingRoger Dingledine2004-08-24
| | | | svn:r2310
* As far as I can tell, CONFIG_LEGAL_FILENAME_CHARACTERS is both pointless and ↵Nick Mathewson2004-08-24
| | | | | | broken. #if it out, pending agreement from arma. This fixes a bug on win32 that rejected paths with a : in them. svn:r2309
* Fix base16_decode; trashing the stack is rude.Nick Mathewson2004-07-22
| | | | svn:r2110
* now base16_encode() and base32_encode() can't ever failRoger Dingledine2004-07-22
| | | | svn:r2103
* oh, and it should compile tooRoger Dingledine2004-07-21
| | | | svn:r2088
* make base16_encode() fail more obviously when it failsRoger Dingledine2004-07-21
| | | | svn:r2087
* More digest/nickname fixesNick Mathewson2004-07-02
| | | | svn:r2000
* Track routers by hash of identity key; use hex hash of identity key in place ↵Nick Mathewson2004-07-01
| | | | | | of nickname; accept (and use) hash of identity key in EXTEND cells. svn:r1994
* put a comment reminding us that we do hashes in software onlyRoger Dingledine2004-06-01
| | | | svn:r1925
* bugfix: our integrity-checking digest was checking only the mostRoger Dingledine2004-05-15
| | | | | | | | | recent cell, not the previous cells like we'd thought. this change is backward incompatible. svn:r1868
* Not every RSA decrypt should warn on failure.Nick Mathewson2004-05-12
| | | | svn:r1853
* it's amazing what a bit of punctuation can do for appearancesRoger Dingledine2004-05-10
| | | | svn:r1843
* Doxygenate common.Nick Mathewson2004-05-10
| | | | svn:r1829
* some patches on the patchesRoger Dingledine2004-05-01
| | | | svn:r1761
* Finish documenting the functions in commonNick Mathewson2004-05-01
| | | | svn:r1758
* Handle windows socket errors correctly; comment most of common.Nick Mathewson2004-05-01
| | | | svn:r1756
* Remove IVs from cipher code, since AES-ctr has none.Nick Mathewson2004-04-28
| | | | svn:r1742
* use nick's _ARRAYSIZE abstractionRoger Dingledine2004-04-28
| | | | svn:r1741
* Make Tor build on win32 with VC6 without warnings.Nick Mathewson2004-04-28
| | | | svn:r1739
* Workarounds for a couple of pieces of windows strangeness.Nick Mathewson2004-04-28
| | | | svn:r1734
* some compilers don't like an array of length zeroRoger Dingledine2004-04-27
| | | | | | | | nick: should we remove support for IVs for now, since we don't use them and don't plan to use them? svn:r1732
* Refactor crypto error handling to be more like TLS error handling:Nick Mathewson2004-04-26
| | | | | | | | | | | | | crypto_perror is a no-no, since an operation can set more than one error. Also, fix a bug in the unix crypto_seed_rng: mixing stdio with /dev/urandom is a bad idea, since fopen can make all kinds of weird extraneous syscalls (mmap, fcntl, stat64, etc.) and since fread tends to buffer data in big chunks, thus depleting the entropy pool. svn:r1717
* use tor_assert and PUBLIC_KEY_OKRoger Dingledine2004-04-25
| | | | | | | but don't use tor_assert inside log.c, to avoid loops svn:r1696
* Add assert on crypto_pk_write_private_key,and macros to make sure we have ↵Nick Mathewson2004-04-25
| | | | | | real keys svn:r1694
* don't warn when private_decrypt_hybrid failsRoger Dingledine2004-04-25
| | | | svn:r1689