Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Aug 10, 2023
1 parent d11bf50 commit ee15273
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion executables/benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void benchmark_crypt(const Options &options,const bool packet_validation_only) {
Encryptor encryptor{std::nullopt};
encryptor.set_encryption_enabled(!packet_validation_only);
Decryptor decryptor{std::nullopt};
encryptor.set_encryption_enabled(!packet_validation_only);
decryptor.set_encryption_enabled(!packet_validation_only);
std::array<uint8_t, crypto_box_NONCEBYTES> sessionKeyNonce{};
std::array<uint8_t, crypto_aead_chacha20poly1305_KEYBYTES + crypto_box_MACBYTES> sessionKeyData{};
encryptor.makeNewSessionKey(sessionKeyNonce, sessionKeyData);
Expand Down
2 changes: 1 addition & 1 deletion executables/unit_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static void test_encrypt_decrypt_validate(const bool useGeneratedFiles,bool mess
Encryptor encryptor{encKey};
encryptor.set_encryption_enabled(!message_signing_only);
Decryptor decryptor{decKey};
encryptor.set_encryption_enabled(!message_signing_only);
decryptor.set_encryption_enabled(!message_signing_only);
struct SessionStuff{
std::array<uint8_t, crypto_box_NONCEBYTES> sessionKeyNonce{}; // random data
std::array<uint8_t, crypto_aead_chacha20poly1305_KEYBYTES + crypto_box_MACBYTES> sessionKeyData{};
Expand Down

0 comments on commit ee15273

Please sign in to comment.