Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Aug 10, 2023
1 parent 0e9a4a6 commit 9209da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions executables/unit_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ static void test_encrypt_decrypt_validate(const bool useGeneratedFiles,bool mess
// make session key (tx)
encryptor.makeNewSessionKey(sessionKeyPacket.sessionKeyNonce, sessionKeyPacket.sessionKeyData);
// and "receive" session key (rx)
assert(
decryptor.onNewPacketSessionKeyData(sessionKeyPacket.sessionKeyNonce, sessionKeyPacket.sessionKeyData) == true);
assert(decryptor.onNewPacketSessionKeyData(sessionKeyPacket.sessionKeyNonce, sessionKeyPacket.sessionKeyData)
== Decryptor::SESSION_VALID_NEW);
// now encrypt a couple of packets and decrypt them again afterwards
for (uint64_t nonce = 0; nonce < 200; nonce++) {
const auto data = GenericHelper::createRandomDataBuffer(FEC_PACKET_MAX_PAYLOAD_SIZE);
Expand Down

0 comments on commit 9209da7

Please sign in to comment.