Commit Graph

56 Commits

Author SHA1 Message Date
irungentoo
747c290269 Fixed DHT_test.c and added some checks. 2013-08-20 15:53:15 -04:00
irungentoo
ac621d96d3 Refactor of core done. 2013-08-20 14:47:32 -04:00
irungentoo
a1c40d753e More refactoring done. 2013-08-20 12:08:55 -04:00
irungentoo
afa6edecc1 Some refactoring done. 2013-08-19 23:54:28 -04:00
irungentoo
45fec94452 Fixed segfault and removed deprecated code. 2013-08-18 11:01:15 -04:00
irungentoo
88ea4659e9 Properly fixed possible realloc with size zero problem. 2013-08-18 10:27:03 -04:00
Sean Qureshi
a03dcbb54e Fixes CERT MEM04-C; CWE-131 in net_crypto.c 2013-08-18 01:31:54 -07:00
irungentoo
f259ab5fa7 Fixed bug. 2013-08-17 11:30:48 -04:00
irungentoo
7d092c3467 Added dynamic memory allocation to crypto connections.
Also fixed some possible bugs in Messenger.c
2013-08-17 11:16:08 -04:00
irungentoo
88ff81d9de Passed everything through astyle. 2013-08-16 13:11:09 -04:00
irungentoo
b15230583c Fixed loading and a small problem with the length of crypto requests. 2013-08-15 20:56:22 -04:00
irungentoo
4330bfbf87 Metadata collection prevention part 1 of ???.
Crypto requests packets are packets that can be routed by nodes in the
DHT. In this pull request I have merged both Natping requests and friend
requests into one common packet (Crypto request packets). Both these
packets should now only be distinguishable by the size of the data in
them to an outside observer for an example on how to send and recieve
data with these packets see: friend_requests.c

Note that these packets are prefixed with id 32 (friend request packets)
which means this change is compatible with the currently running DHT
bootstrap servers.

Also changed small thing in DHT_test.c
2013-08-14 18:26:00 -04:00
slvr
a854a730ec Reduced redundant code, added new crypto test 2013-08-14 14:46:29 +01:00
slvr
ee34b51c24 s/BOXZERO/ZERO/ 2013-08-14 14:29:39 +01:00
slvr
0b27a0cb35 Incorrect constants: s/BOXZERO/ZERO/ 2013-08-14 14:26:04 +01:00
irungentoo
8e05bcb5f9 Merge pull request #422 from slvr/crypto-speed-boost
Cryptography speed boost
2013-08-10 16:20:54 -07:00
irungentoo
e37fd0c607 That define doesn't belong here. 2013-08-10 19:04:00 -04:00
slvr
a5f34764d2 Ensure encrypt_precompute is called when status == CONN_ESTABLISHED 2013-08-10 18:46:11 +01:00
slvr
021852d494 Implemented encrypt_data_fast, decrypt_data_fast and crypto tests 2013-08-10 17:41:32 +01:00
Florian Hahn
5617bf0bf1 Use void for functions with no parameters 2013-08-05 15:57:17 +02:00
Florian Hahn
8680cf76bf Make private functions in core/net_crypto.c static 2013-08-04 23:05:20 +02:00
Jae Kwon
158751cb2d various fixes for first time user
* added linking to libsodium
* fixed links to docs to point to wiki
2013-08-03 14:46:52 -07:00
Nick ODell
9c039cfd2a Replace ZEROBYTES - BOXZEROBYTES with MACBYTES 2013-08-02 16:35:41 -06:00
Nick ODell
8d1f7753f6 Fix bug where memcpy could overrun buffer 2013-08-02 13:40:56 -06:00
Nick ODell
fd95ab5ed7 Remove some magic numbers; use macros to clarify intent 2013-08-01 19:21:50 -06:00
irungentoo
79f0a2ccba Fixed stupid copy pasting mistake. 2013-08-01 16:15:10 -04:00
irungentoo
ffd69a6525 Possible timing problem fixed. 2013-08-01 15:49:32 -04:00
irungentoo
633edcf452 Fixed possible timing problem. 2013-08-01 14:44:51 -04:00
irungentoo
7a08681af5 Fixed possible issues with the crypto reported by an anonymous person. 2013-08-01 11:22:56 -04:00
irungentoo
14b43651c1 Ran the code through: astyle --style=linux 2013-07-27 08:43:36 -04:00
Konstantin Kowalski
241aca98bd A *lot* of style changes. 2013-07-26 23:07:25 -04:00
nfkd
16c9e23b3c Fix braces 2013-07-26 19:39:04 -03:00
SilentSand
59b34e423b Formatting.
Many stylistic changes, mostly formatting code more closely to the
coding style.
2013-07-26 04:02:17 -04:00
SilentSand
f377eb9ca2 Licensing
Added the GPLv3 license to some files in addition to fixing some
comments at the beginning of the files.
2013-07-25 21:45:56 -04:00
irungentoo
ee331fd73b Experimental and unoptimized symmetric NAT hole punching added. 2013-07-24 19:39:34 -04:00
irungentoo
55361eac6f Modified the way friend requests worked.
Added routing of friend requests.
2013-07-22 14:52:42 -04:00
redwire
b16013b86b Fixed temp redeclaration 2013-07-21 21:23:21 -02:30
redwire
99c3426cbc Going with irungentoo's suggestion and using memcpy instead of sectioning with arithmetic 2013-07-21 21:13:04 -02:30
Zack
9b634504a6 Fixed an embarassing typo 2013-07-21 18:40:24 -02:30
Zack
c999fb6462 Implemented a faster algorithm for generating nonces 2013-07-21 18:35:12 -02:30
irungentoo
72ea431489 Merge pull request #62 from Captainhat/master
More comments in core fixed
2013-07-20 08:25:19 -07:00
Andrew
9616cc6a89 More changes made to comments, as requested by jvrv 2013-07-20 11:02:43 -04:00
Andrew
5101ef756a Fixed comments in other files as per request of jvrv 2013-07-20 10:39:05 -04:00
Martijnvdc
cf6327db49 Update net_crypto.c
changed all "i++" into "++i", as proposed by nfkd
2013-07-19 19:34:35 +02:00
irungentoo
4864cb9edb Bug fixed, Loading and saving added to core. 2013-07-17 12:07:19 -04:00
irungentoo
5572396c53 Saving and loading of keys added. 2013-07-16 13:44:46 -04:00
irungentoo
f3dfeb607b Fixed useless inbound connection not timing out. 2013-07-14 15:22:49 -04:00
irungentoo
79aa715514 First part of DHT hardening done.
Added crypto to the DHT communications.

This defeats completely the first attack mentioned in
docs/DHT_hardening.

Also updated the build system to build the latest test (it links it with
libsodium)
2013-07-12 16:27:19 -04:00
irungentoo
127fced11f Added comment block to Messenger test. 2013-07-09 13:27:47 -04:00
irungentoo
4d50638528 Basic IM messenger backend pretty much done (You can start the GUI)
And a couple of fixes to the other parts.
2013-07-09 13:20:48 -04:00