cjdelisle/cjdns — Issue #40: doesn't work on MIPS platform.
Author: cjdelisle
Created: 2012-03-10 05:45:24+00:00
State: open

Testing in qemu-system-mips -M malta showed a failing test:

user@debian-mips:~/cjdns/build$ ./crypto/test/CryptoAuth_test

Setting up:
1331357489 DEBUG CryptoAuth.c:338 Buffered a message.
sent message --> nonce=-1
1331357489 DEBUG CryptoAuth.c:423 Sending hello packet
1331357489 DEBUG CryptoAuth.c:478 Message length: 48
sent message <-- nonce=0
1331357489 DEBUG CryptoAuth.c:675 Received a hello packet, using auth: 0
1331357489 DEBUG CryptoAuth.c:727 Message length: 48
1331357489 DEBUG CryptoAuth.c:779 Sending buffered message.
1331357489 DEBUG CryptoAuth.c:450 Sending key packet
1331357489 DEBUG CryptoAuth.c:478 Message length: 59
sent message --> nonce=2
1331357489 DEBUG CryptoAuth.c:704 Received a key packet
1331357489 DEBUG CryptoAuth.c:727 Message length: 59
if2 got message! hello world
1331357489 DEBUG CryptoAuth.c:555 Doing final step to send message. nonce=4
sent message <-- nonce=4
1331357489 DEBUG CryptoAuth.c:812 Trying final handshake step, nonce=4
if1 got message! hello cjdns
1331357489 DEBUG CryptoAuth.c:820 Final handshake step succeeded.
sent message --> nonce=6
if2 got message! hai
sent message <-- nonce=5
if1 got message! goodbye

Setting up:
1331357490 DEBUG CryptoAuth.c:338 Buffered a message.
sent message --> nonce=-1
1331357490 DEBUG CryptoAuth.c:423 Sending hello packet
1331357490 DEBUG CryptoAuth.c:478 Message length: 48
sent message <-- nonce=0
1331357490 DEBUG CryptoAuth.c:675 Received a hello packet, using auth: 0
1331357490 DEBUG CryptoAuth.c:727 Message length: 48
1331357490 DEBUG CryptoAuth.c:779 Sending buffered message.
1331357490 DEBUG CryptoAuth.c:450 Sending key packet
1331357490 DEBUG CryptoAuth.c:478 Message length: 59
sent message --> nonce=2
1331357490 DEBUG CryptoAuth.c:704 Received a key packet
1331357490 DEBUG CryptoAuth.c:727 Message length: 59
if2 got message! hello world
1331357490 DEBUG CryptoAuth.c:452 Sending repeat key packet
1331357490 DEBUG CryptoAuth.c:478 Message length: 57
sent message --> nonce=3
1331357490 DEBUG CryptoAuth.c:706 Received a repeat key packet
1331357490 DEBUG CryptoAuth.c:727 Message length: 57
if2 got message! r u thar?
1331357490 DEBUG CryptoAuth.c:555 Doing final step to send message. nonce=4
sent message <-- nonce=4
1331357490 DEBUG CryptoAuth.c:812 Trying final handshake step, nonce=4
if1 got message! hello cjdns
1331357490 DEBUG CryptoAuth.c:820 Final handshake step succeeded.
sent message --> nonce=6
if2 got message! hai
sent message <-- nonce=5
if1 got message! goodbye

Setting up:
1331357490 DEBUG CryptoAuth.c:423 Sending hello packet
1331357490 DEBUG CryptoAuth.c:478 Message length: 59
sent message --> nonce=0
1331357490 DEBUG CryptoAuth.c:675 Received a hello packet, using auth: 0
1331357491 DEBUG CryptoAuth.c:727 Message length: 59
if2 got message! hello world
1331357491 DEBUG CryptoAuth.c:425 Sending repeat hello packet
1331357491 DEBUG CryptoAuth.c:478 Message length: 57
sent message --> nonce=1
1331357491 DEBUG CryptoAuth.c:677 Received a repeat hello packet
1331357491 DEBUG CryptoAuth.c:727 Message length: 57
if2 got message! r u thar?
1331357491 DEBUG CryptoAuth.c:450 Sending key packet
1331357491 DEBUG CryptoAuth.c:478 Message length: 59
sent message <-- nonce=2
1331357491 DEBUG CryptoAuth.c:704 Received a key packet
1331357491 DEBUG CryptoAuth.c:727 Message length: 59
if1 got message! hello cjdns
1331357491 DEBUG CryptoAuth.c:555 Doing final step to send message. nonce=4
sent message --> nonce=4
1331357491 DEBUG CryptoAuth.c:812 Trying final handshake step, nonce=4
if2 got message! hai
1331357491 DEBUG CryptoAuth.c:820 Final handshake step succeeded.
sent message <-- nonce=6
if1 got message! goodbye

Setting up:
1331357491 DEBUG CryptoAuth.c:338 Buffered a message.
sent message --> nonce=-1
1331357491 DEBUG CryptoAuth.c:423 Sending hello packet
1331357491 DEBUG CryptoAuth.c:478 Message length: 48
sent message <-- nonce=0
1331357491 DEBUG CryptoAuth.c:675 Received a hello packet, using auth: 0
1331357491 DEBUG CryptoAuth.c:727 Message length: 48
1331357491 DEBUG CryptoAuth.c:779 Sending buffered message.
1331357491 DEBUG CryptoAuth.c:450 Sending key packet
1331357492 DEBUG CryptoAuth.c:478 Message length: 59
sent message --> nonce=2
1331357492 DEBUG CryptoAuth.c:704 Received a key packet
1331357492 DEBUG CryptoAuth.c:727 Message length: 59
if2 got message! hello world
1331357492 DEBUG CryptoAuth.c:555 Doing final step to send message. nonce=4
sent message <-- nonce=4
1331357492 DEBUG CryptoAuth.c:812 Trying final handshake step, nonce=4
if1 got message! hello cjdns
1331357492 DEBUG CryptoAuth.c:820 Final handshake step succeeded.
sent message --> nonce=6
if2 got message! hai
sent message <-- nonce=5
if1 got message! goodbye
sent message <-- nonce=6
if1 got message! hello cjdns
sent message --> nonce=7
if2 got message! hai
sent message <-- nonce=7
if1 got message! goodbye
sent message <-- nonce=8
if1 got message! hello cjdns
sent message --> nonce=8
if2 got message! hai
sent message <-- nonce=9
if1 got message! goodbye
sent message <-- nonce=10
if1 got message! hello cjdns
sent message --> nonce=9
if2 got message! hai
sent message <-- nonce=11
if1 got message! goodbye

Setting up:
1331357492 DEBUG CryptoAuth.c:423 Sending hello packet
1331357493 DEBUG CryptoAuth.c:478 Message length: 59
sent message --> nonce=0
1331357493 DEBUG CryptoAuth.c:675 Received a hello packet, using auth: 1
1331357493 DEBUG CryptoAuth.c:727 Message length: 59
1331357493 DEBUG CryptoAuth.c:748 Dropped message because authenticated decryption failed.
CryptoAuth_test: /home/user/cjdns/crypto/test/CryptoAuth_test.c:161: sendToIf2: Assertion `if2Msg' failed.
Aborted
user@debian-mips:~/cjdns/build$