6 changed files with 4219257 additions and 933 deletions
@ -1,6 +1,6 @@ |
|||||||
[16:39:30-886.734] [INFO] [16] (test_crypto.c:16) main() === Basic Crypto Test === |
[17:54:06-382.886] [INFO] [16] (test_crypto.c:16) main() === Basic Crypto Test === |
||||||
[16:39:30-888.044] [INFO] [16] (test_crypto.c:27) main() AES key setup successful |
[17:54:06-384.312] [INFO] [16] (test_crypto.c:27) main() AES key setup successful |
||||||
[16:39:30-888.092] [INFO] [16] (test_crypto.c:38) main() CCM config successful |
[17:54:06-384.350] [INFO] [16] (test_crypto.c:38) main() CCM config successful |
||||||
[16:39:30-888.126] [INFO] [16] (test_crypto.c:50) main() Encryption successful |
[17:54:06-384.383] [INFO] [16] (test_crypto.c:50) main() Encryption successful |
||||||
[16:39:30-888.162] [INFO] [16] (test_crypto.c:58) main() Decryption successful |
[17:54:06-384.415] [INFO] [16] (test_crypto.c:58) main() Decryption successful |
||||||
[16:39:30-888.186] [INFO] [16] (test_crypto.c:61) main() Crypto test PASSED |
[17:54:06-384.438] [INFO] [16] (test_crypto.c:61) main() Crypto test PASSED |
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@ |
|||||||
[16:39:30-839.015] [INFO] [16] (test_etcp_crypto.c:17) main() === ETCP Crypto Test === |
[17:54:06-364.247] [INFO] [16] (test_etcp_crypto.c:17) main() === ETCP Crypto Test === |
||||||
[16:39:30-855.810] [ERROR] [16] (secure_channel.c:211) sc_set_peer_public_key() sc_set_peer_public_key: invalid key |
[17:54:06-366.363] [ERROR] [16] (secure_channel.c:211) sc_set_peer_public_key() sc_set_peer_public_key: invalid key |
||||||
[16:39:30-855.934] [ERROR] [16] (secure_channel.c:211) sc_set_peer_public_key() sc_set_peer_public_key: invalid key |
[17:54:06-366.456] [ERROR] [16] (secure_channel.c:211) sc_set_peer_public_key() sc_set_peer_public_key: invalid key |
||||||
[16:39:30-855.968] [INFO] [16] (test_etcp_crypto.c:54) main() Crypto contexts initialized |
[17:54:06-366.470] [INFO] [16] (test_etcp_crypto.c:54) main() Crypto contexts initialized |
||||||
[16:39:30-869.483] [INFO] [16] (test_etcp_crypto.c:77) main() Client->Server encryption/decryption: PASSED |
[17:54:06-369.196] [INFO] [16] (test_etcp_crypto.c:77) main() Client->Server encryption/decryption: PASSED |
||||||
[16:39:30-869.534] [INFO] [16] (test_etcp_crypto.c:78) main() ETCP crypto test PASSED |
[17:54:06-369.223] [INFO] [16] (test_etcp_crypto.c:78) main() ETCP crypto test PASSED |
||||||
|
|||||||
@ -0,0 +1,46 @@ |
|||||||
|
=== Minimal ETCP Traffic Flow Debugging === |
||||||
|
=== Testing Basic Packet Analysis === |
||||||
|
Test packet: 00 00 06 00 01 48 65 6C 6C 6F |
||||||
|
Section type: 0x00 |
||||||
|
Section length: 6 |
||||||
|
Total packet size: 10 |
||||||
|
This is a PAYLOAD section |
||||||
|
Packet ID: 1 |
||||||
|
Payload size: 4 bytes |
||||||
|
Payload data: 48 65 6C 6C |
||||||
|
Payload as text: Hell |
||||||
|
|
||||||
|
=== Testing Multi-Section Packet === |
||||||
|
Multi-section packet: 06 00 02 12 34 01 00 09 02 00 01 56 78 00 02 56 79 00 00 08 00 03 48 65 6C 6C 6F 21 |
||||||
|
|
||||||
|
Section 0 at position 0: |
||||||
|
Type: 0x06 (TIMESTAMP) |
||||||
|
Length: 2 bytes |
||||||
|
Timestamp: 4660 |
||||||
|
|
||||||
|
Section 1 at position 5: |
||||||
|
Type: 0x01 (ACK) |
||||||
|
Length: 9 bytes |
||||||
|
ACK count: 2 |
||||||
|
ACK[0]: id=1, ts=22136 |
||||||
|
ACK[1]: id=2, ts=22137 |
||||||
|
|
||||||
|
Section 2 at position 17: |
||||||
|
Type: 0x00 (PAYLOAD) |
||||||
|
Length: 8 bytes |
||||||
|
Packet ID: 3 |
||||||
|
Payload: Hello! |
||||||
|
|
||||||
|
Total sections parsed: 3 |
||||||
|
|
||||||
|
=== Testing Connection Establishment Packets === |
||||||
|
INIT_REQUEST packet: |
||||||
|
Node ID: 0x2222222222222222 |
||||||
|
MTU: 1500 |
||||||
|
Keepalive: 100 |
||||||
|
|
||||||
|
INIT_RESPONSE packet: |
||||||
|
Node ID: 0x1111111111111111 |
||||||
|
MTU: 1500 |
||||||
|
|
||||||
|
=== Test completed === |
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue