Commit Graph

18 Commits

Author SHA1 Message Date
irungentoo 2ba076ac5c Load only secret key from tox save, not public key.
Calculate public key from it.
2015-05-21 20:39:47 -04:00
irungentoo b4fc0809a7 The only secure compare function currently needed is one to compare 2 public keys. 2015-04-18 13:13:29 -04:00
irungentoo fd56762a1b Code cleanups. 2015-02-14 23:00:35 -05:00
irungentoo 1092bc6e03 Code cleanups. 2015-01-21 21:02:46 -05:00
irungentoo 3328127f18 Merge branch '1210' of https://github.com/ldrumm/toxcore 2014-12-31 18:04:46 -05:00
irungentoo 473915cced Remove useless defines. 2014-12-31 18:03:41 -05:00
Luke Drummond bf6fe08d0b fixes #1210 2014-12-31 04:03:40 +00:00
cgar 2bb2bc4163 spelling corrections 2014-09-09 20:31:37 -04:00
irungentoo 6408c406b2 Added more input validation to add_friend functions. 2014-06-16 19:31:39 -04:00
irungentoo 07936960df Astyle and fixes. 2014-06-10 18:35:55 -04:00
Marc Schütz 55d986270b Const correctness in toxcore/crypto_core.c 2014-06-10 18:38:43 +02:00
irungentoo deb8bfc350 Random number functions belong in crypto_core. 2014-05-01 19:42:44 -04:00
irungentoo 47aa53a384 Protocol implementation is starting to look ok.
Still need to decide exactly how data packets will work though.
2014-05-01 19:20:28 -04:00
irungentoo 19a4b1e443 Improved the crypto_cmp function.
It now uses the NaCl functions when the length is appropriate.

Moved crypto defines to crypto_core.h
2014-05-01 08:06:24 -04:00
irungentoo 3863e01e22 Some more work done on the middle network protocol.
Handshake most likely has no more possible flaws to it, next thing
to do is to do the same with the data packets.

Wrote a couple more functions.
2014-04-29 20:45:32 -04:00
irungentoo b9370d519f Added some functions to create/handle middle level protocol packets. 2014-04-28 20:14:07 -04:00
irungentoo 384750af8c Major cleanups.
Fixed circular dependency between DHT and net_crypto: DHT no longer
depends on net_crypto.

Moved the crypto request packets functions to crypto core and DHT.

Cleaned up/added some defines that can be used to get the true maximum
length of things like the friends request message.

MAX_DATA_SIZE has been replaced in most places by more appropriate defines.
2014-04-23 11:35:40 -04:00
irungentoo 9c6a8432ce Crypto related cleanups.
Moved Bunch of functions from net_crypto to crypto_core.

decrypt_data_fast and decrypt_data_symmetric were the same thing
therefore, removed decrypt_data_fast.

Replaced all the crypto_secretbox_* defines with the equivalent
crypto_box_* one.

New define: crypto_box_KEYBYTES that is equal to
crypto_box_BEFORENMBYTES.
2014-04-21 16:51:36 -04:00