mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-22 07:41:20 -04:00
added lots of debugging info. Fixed stupid bug supplying wrong AES key. Distant chat works!
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-GenericTunneling@6325 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5657ab9796
commit
1e5a7a057c
5 changed files with 19 additions and 10 deletions
|
@ -9,8 +9,8 @@ OPS_TOP_DIR = ../../../../openpgpsdk/src
|
|||
include $(RS_TOP_DIR)/tests/scripts/config.mk
|
||||
###############################################################
|
||||
|
||||
TESTOBJ = dirtest.o sha1_test.o aes_test.o
|
||||
TESTS = dirtest sha1_test aes_test
|
||||
TESTOBJ = dirtest.o sha1_test.o aes_test.o dchat_decrypt.o
|
||||
TESTS = dirtest sha1_test aes_test dchat_decrypt
|
||||
|
||||
all: tests
|
||||
|
||||
|
@ -20,6 +20,8 @@ dirtest: dirtest.o
|
|||
$(CC) $(CFLAGS) -o dirtest dirtest.o $(LIBS)
|
||||
dirtest: aes_test.o
|
||||
$(CC) $(CFLAGS) -o aes_test aes_test.o $(LIBS)
|
||||
dchat_decrypt: dchat_decrypt.o
|
||||
$(CC) $(CFLAGS) -o dchat_decrypt dchat_decrypt.o $(LIBS)
|
||||
|
||||
###############################################################
|
||||
include $(RS_TOP_DIR)/tests/scripts/rules.mk
|
||||
|
|
|
@ -76,6 +76,9 @@ int main(int argc,char *argv[])
|
|||
for(int i=0;i<16;++i)
|
||||
key_data[i] = lrand48() & 0xff ;
|
||||
|
||||
std::cerr << "Key: " ; printHex(key_data,16);
|
||||
std::cerr << std::endl;
|
||||
|
||||
for(int i=5;i<source_string.length();++i)
|
||||
{
|
||||
for(int j=0;j<8;++j)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue